Document that consensus.chaintip != consensus.nextblock just before an upgrade

This commit is contained in:
Jack Grigg 2018-02-22 14:01:43 +00:00
parent 4c3d2b3bbe
commit 50a90615af
No known key found for this signature in database
GPG Key ID: 665DBCD284F7DAFF
1 changed files with 5 additions and 3 deletions

View File

@ -696,6 +696,8 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
throw runtime_error( throw runtime_error(
"getblockchaininfo\n" "getblockchaininfo\n"
"Returns an object containing various state info regarding block chain processing.\n" "Returns an object containing various state info regarding block chain processing.\n"
"\nNote that when the chain tip is at the last block before a network upgrade activation,\n"
"consensus.chaintip != consensus.nextblock.\n"
"\nResult:\n" "\nResult:\n"
"{\n" "{\n"
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n" " \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
@ -721,10 +723,10 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
" ],\n" " ],\n"
" \"upgrades\": { (object) status of network upgrades\n" " \"upgrades\": { (object) status of network upgrades\n"
" \"xxxx\" : { (string) branch ID of the upgrade\n" " \"xxxx\" : { (string) branch ID of the upgrade\n"
" \"name\": \"xxxx\", (string) name of upgrade\n" " \"name\": \"xxxx\", (string) name of upgrade\n"
" \"activationheight\": xxxxxx, (numeric) block height of activation\n" " \"activationheight\": xxxxxx, (numeric) block height of activation\n"
" \"status\": \"xxxx\", (string) status of upgrade\n" " \"status\": \"xxxx\", (string) status of upgrade\n"
" \"info\": \"xxxx\", (string) additional information about upgrade\n" " \"info\": \"xxxx\", (string) additional information about upgrade\n"
" }, ...\n" " }, ...\n"
" },\n" " },\n"
" \"consensus\": { (object) branch IDs of the current and upcoming consensus rules\n" " \"consensus\": { (object) branch IDs of the current and upcoming consensus rules\n"