From 50a90615af196d89f11da6e13527d323e1c03fe1 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 22 Feb 2018 14:01:43 +0000 Subject: [PATCH] Document that consensus.chaintip != consensus.nextblock just before an upgrade --- src/rpcblockchain.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 32f3f0fee..626c4724f 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -696,6 +696,8 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) throw runtime_error( "getblockchaininfo\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" "{\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" " \"upgrades\": { (object) status of network upgrades\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" - " \"status\": \"xxxx\", (string) status of upgrade\n" - " \"info\": \"xxxx\", (string) additional information about upgrade\n" + " \"status\": \"xxxx\", (string) status of upgrade\n" + " \"info\": \"xxxx\", (string) additional information about upgrade\n" " }, ...\n" " },\n" " \"consensus\": { (object) branch IDs of the current and upcoming consensus rules\n"