mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 19:47:30 -03:00
rpc: rename getdeploymentinfo status-next to status_next
This commit is contained in:
parent
93feabcb30
commit
5d7c69b887
2 changed files with 4 additions and 4 deletions
|
@ -1481,7 +1481,7 @@ static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softfo
|
||||||
// BIP9 status
|
// BIP9 status
|
||||||
bip9.pushKV("status", get_state_name(current_state));
|
bip9.pushKV("status", get_state_name(current_state));
|
||||||
bip9.pushKV("since", g_versionbitscache.StateSinceHeight(blockindex->pprev, consensusParams, id));
|
bip9.pushKV("since", g_versionbitscache.StateSinceHeight(blockindex->pprev, consensusParams, id));
|
||||||
bip9.pushKV("status-next", get_state_name(next_state));
|
bip9.pushKV("status_next", get_state_name(next_state));
|
||||||
|
|
||||||
// BIP9 signalling status, if applicable
|
// BIP9 signalling status, if applicable
|
||||||
if (has_signal) {
|
if (has_signal) {
|
||||||
|
@ -1623,7 +1623,7 @@ const std::vector<RPCResult> RPCHelpForDeployment{
|
||||||
{RPCResult::Type::NUM, "min_activation_height", "minimum height of blocks for which the rules may be enforced"},
|
{RPCResult::Type::NUM, "min_activation_height", "minimum height of blocks for which the rules may be enforced"},
|
||||||
{RPCResult::Type::STR, "status", "status of deployment at specified block (one of \"defined\", \"started\", \"locked_in\", \"active\", \"failed\")"},
|
{RPCResult::Type::STR, "status", "status of deployment at specified block (one of \"defined\", \"started\", \"locked_in\", \"active\", \"failed\")"},
|
||||||
{RPCResult::Type::NUM, "since", "height of the first block to which the status applies"},
|
{RPCResult::Type::NUM, "since", "height of the first block to which the status applies"},
|
||||||
{RPCResult::Type::STR, "status-next", "status of deployment at the next block"},
|
{RPCResult::Type::STR, "status_next", "status of deployment at the next block"},
|
||||||
{RPCResult::Type::OBJ, "statistics", /*optional=*/true, "numeric statistics about signalling for a softfork (only for \"started\" and \"locked_in\" status)",
|
{RPCResult::Type::OBJ, "statistics", /*optional=*/true, "numeric statistics about signalling for a softfork (only for \"started\" and \"locked_in\" status)",
|
||||||
{
|
{
|
||||||
{RPCResult::Type::NUM, "period", "the length in blocks of the signalling period"},
|
{RPCResult::Type::NUM, "period", "the length in blocks of the signalling period"},
|
||||||
|
|
|
@ -200,7 +200,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||||
'timeout': 0x7fffffffffffffff, # testdummy does not have a timeout so is set to the max int64 value
|
'timeout': 0x7fffffffffffffff, # testdummy does not have a timeout so is set to the max int64 value
|
||||||
'min_activation_height': 0,
|
'min_activation_height': 0,
|
||||||
'status': 'started',
|
'status': 'started',
|
||||||
'status-next': status_next,
|
'status_next': status_next,
|
||||||
'since': 144,
|
'since': 144,
|
||||||
'statistics': {
|
'statistics': {
|
||||||
'period': 144,
|
'period': 144,
|
||||||
|
@ -220,7 +220,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||||
'timeout': 9223372036854775807,
|
'timeout': 9223372036854775807,
|
||||||
'min_activation_height': 0,
|
'min_activation_height': 0,
|
||||||
'status': 'active',
|
'status': 'active',
|
||||||
'status-next': 'active',
|
'status_next': 'active',
|
||||||
'since': 0,
|
'since': 0,
|
||||||
},
|
},
|
||||||
'height': 0,
|
'height': 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue