Skip to content

Commit 52d2004

Browse files
laanwjMunkybooty
authored andcommitted
Merge #16817: rpc: Fix casing in getblockchaininfo to be inline with other fields
1a02edb [RPC] Fix casing in getblockchaininfo to be inline with the rest of the response (Dan Gershony) Pull request description: The response in the RPC result `startTime` is camel cased while the rest of the response seems to be lower cased. If this was intentional please ignore and close this PR. Note: RPC field case changes might break existing callers ACKs for top commit: laanwj: ACK 1a02edb Tree-SHA512: 6f0eaf2b4aaf73c9a9bf1fbd4af59af5f95fc012fa88f94e050e6ae273b3ad647f5729df53bfce91e1a925fe4fd7b14818908bb6131a81413a555137d1007d7c
1 parent 06ebacb commit 52d2004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ static UniValue BIP9SoftForkDesc(const Consensus::Params& consensusParams, Conse
14401440
{
14411441
rv.pushKV("bit", consensusParams.vDeployments[id].bit);
14421442
}
1443-
rv.pushKV("startTime", consensusParams.vDeployments[id].nStartTime);
1443+
rv.pushKV("start_time", consensusParams.vDeployments[id].nStartTime);
14441444
rv.pushKV("timeout", consensusParams.vDeployments[id].nTimeout);
14451445
rv.pushKV("since", VersionBitsTipStateSinceHeight(consensusParams, id));
14461446
if (ThresholdState::STARTED == thresholdState)
@@ -1503,7 +1503,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
15031503
" \"xxxx\" : { (string) name of the softfork\n"
15041504
" \"status\": \"xxxx\", (string) one of \"defined\", \"started\", \"locked_in\", \"active\", \"failed\"\n"
15051505
" \"bit\": xx, (numeric) the bit (0-28) in the block version field used to signal this softfork (only for \"started\" status)\n"
1506-
" \"startTime\": xx, (numeric) the minimum median time past of a block at which the bit gains its meaning\n"
1506+
" \"start_time\": xx, (numeric) the minimum median time past of a block at which the bit gains its meaning\n"
15071507
" \"timeout\": xx, (numeric) the median time past of a block at which the deployment is considered failed if not yet locked in\n"
15081508
" \"since\": xx, (numeric) height of the first block to which the status applies\n"
15091509
" \"statistics\": { (object) numeric statistics about BIP9 signalling for a softfork (only for \"started\" status)\n"

0 commit comments

Comments
 (0)