Language

Choose a language

/build/rpc / reorg

submitreorgdecision

submitreorgdecision "action" Submit an operator decision for a pending deep reorg. This command is used when -reorgadvisorygating=1 is enabled and the node has paused awaiting operator approval for a chain reorganization. Arguments: 1. action (string, required) The decision: 'accept' to switch to the fork, 'reject' to stay on current chain Result: { (json object) "success" : true|false, (boolean) Whether the decision was accepted "action" : "str", (string) The action that was submitted "message" : "str" (string) Status message } Examples: > bitcoin-cli submitreorgdecision accept > bitcoin-cli submitreorgdecision reject > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "submitreorgdecision", "params": ["accept"]}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

submitreorgdecision(action: string) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"submitreorgdecision","params":["\"<action>\""]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
actionstringyesThe decision: 'accept' to switch to the fork, 'reject' to stay on current chain

Result

Type:  any

{ (json object) "success" : true|false, (boolean) Whether the decision was accepted "action" : "str", (string) The action that was submitted "message" : "str" (string) Status message }

Source: services/core-node/bcore/src/rpc/blockchain.cpp:3743

C++ symbol: submitreorgdecision