Skip to content

Commit 5d7c69b

Browse files
committed
rpc: rename getdeploymentinfo status-next to status_next
1 parent 93feabc commit 5d7c69b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softfo
14811481
// BIP9 status
14821482
bip9.pushKV("status", get_state_name(current_state));
14831483
bip9.pushKV("since", g_versionbitscache.StateSinceHeight(blockindex->pprev, consensusParams, id));
1484-
bip9.pushKV("status-next", get_state_name(next_state));
1484+
bip9.pushKV("status_next", get_state_name(next_state));
14851485

14861486
// BIP9 signalling status, if applicable
14871487
if (has_signal) {
@@ -1623,7 +1623,7 @@ const std::vector<RPCResult> RPCHelpForDeployment{
16231623
{RPCResult::Type::NUM, "min_activation_height", "minimum height of blocks for which the rules may be enforced"},
16241624
{RPCResult::Type::STR, "status", "status of deployment at specified block (one of \"defined\", \"started\", \"locked_in\", \"active\", \"failed\")"},
16251625
{RPCResult::Type::NUM, "since", "height of the first block to which the status applies"},
1626-
{RPCResult::Type::STR, "status-next", "status of deployment at the next block"},
1626+
{RPCResult::Type::STR, "status_next", "status of deployment at the next block"},
16271627
{RPCResult::Type::OBJ, "statistics", /*optional=*/true, "numeric statistics about signalling for a softfork (only for \"started\" and \"locked_in\" status)",
16281628
{
16291629
{RPCResult::Type::NUM, "period", "the length in blocks of the signalling period"},

test/functional/rpc_blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def check_signalling_deploymentinfo_result(self, gdi_result, height, blockhash,
200200
'timeout': 0x7fffffffffffffff, # testdummy does not have a timeout so is set to the max int64 value
201201
'min_activation_height': 0,
202202
'status': 'started',
203-
'status-next': status_next,
203+
'status_next': status_next,
204204
'since': 144,
205205
'statistics': {
206206
'period': 144,
@@ -220,7 +220,7 @@ def check_signalling_deploymentinfo_result(self, gdi_result, height, blockhash,
220220
'timeout': 9223372036854775807,
221221
'min_activation_height': 0,
222222
'status': 'active',
223-
'status-next': 'active',
223+
'status_next': 'active',
224224
'since': 0,
225225
},
226226
'height': 0,

0 commit comments

Comments
 (0)