Skip to content

Commit

Permalink
docs: Add invalidate/reconsiderblock JSON-RPC API.
Browse files Browse the repository at this point in the history
This adds documentation for the new invalidateblock and reconsiderblock
RPC commands to the JSON-RPC API docs.
  • Loading branch information
davecgh committed Dec 31, 2020
1 parent f9564b2 commit 584c336
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/json_rpc_api.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ the method name for further details such as parameter and return information.
|Y
|Returns a list of all commands or help for a specified command.
|-
|[[#invalidateblock|invalidateblock]]
|N
|Permanently invalidates a block as if it had violated consensus rules.
|-
|[[#livetickets|livetickets]]
|Y
|Returns live ticket hashes from the ticket database.
Expand All @@ -366,6 +370,10 @@ the method name for further details such as parameter and return information.
|N
|Queues a ping to be sent to each connected peer.
|-
|[[#reconsiderblock|reconsiderblock]]
|N
|Reconsiders a block for validation and best chain selection by removing any invalid status from it and its ancestors. Any descendants that are neither themselves marked as having failed validation, nor descendants of another such block, are also made eligibile for best chain selection.
|-
|[[#regentemplate|regentemplate]]
|Y
|Asks the daemon to regenerate the mining block template.
Expand Down Expand Up @@ -2219,6 +2227,26 @@ of the best block.

----

====invalidateblock====
{|
!Method
|invalidateblock
|-
!Parameters
|
# <code>block hash</code>: <code>(string, required)</code> the hash of the block to invalidate
|-
!Description
|
: Permanently invalidates a block as if it had violated consensus rules.
: Use [[#reconsiderblock|reconsiderblock]] to remove the invalid status.
|-
!Returns
|Nothing
|}

----

====livetickets====
{|
!Method
Expand Down Expand Up @@ -2301,6 +2329,26 @@ of the best block.

----

====reconsiderblock====
{|
!Method
|reconsiderblock
|-
!Parameters
|
# <code>block hash</code>: <code>(string, required)</code> the hash of the block to reconsider
|-
!Description
|
: Reconsiders a block for validation and best chain selection by removing any invalid status from it and its ancestors.
: Any descendants that are neither themselves marked as having failed validation, nor descendants of another such block, are also made eligibile for best chain selection.
|-
!Returns
|Nothing
|}

----

====regentemplate====
{|
!Method
Expand Down

0 comments on commit 584c336

Please sign in to comment.