diff options
| author | Max K <[email protected]> | 2019-04-14 09:33:27 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-14 09:33:27 -0700 |
| commit | ea4a3c5e16d7818fe1ca45b6ec89b08bf59501ed (patch) | |
| tree | c508feb31b14c46d106a27b676b689afadcb2777 /src/rpc/blockchain.cpp | |
| parent | Merge pull request #1574 from rnicoll/1.14-rnicoll-key (diff) | |
| parent | Update chainparams with more recent data (diff) | |
| download | discoin-1.14-rc-1.tar.xz discoin-1.14-rc-1.zip | |
Merge pull request #1561 from langerhans/1.14-progress-fixv1.14-rc-1
Fix verification progress
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 43a802e9b..e1119495f 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1145,6 +1145,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request) " \"difficulty\": xxxxxx, (numeric) the current difficulty\n" " \"mediantime\": xxxxxx, (numeric) median time for the current best block\n" " \"verificationprogress\": xxxx, (numeric) estimate of verification progress [0..1]\n" + " \"initialblockdownload\": xxxx, (bool) (debug information) estimate of whether this node is in Initial Block Download mode.\n" " \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n" " \"pruned\": xx, (boolean) if the blocks are subject to pruning\n" " \"pruneheight\": xxxxxx, (numeric) lowest-height complete block stored\n" @@ -1182,6 +1183,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request) obj.push_back(Pair("difficulty", (double)GetDifficulty())); obj.push_back(Pair("mediantime", (int64_t)chainActive.Tip()->GetMedianTimePast())); obj.push_back(Pair("verificationprogress", GuessVerificationProgress(Params().TxData(), chainActive.Tip()))); + obj.push_back(Pair("initialblockdownload", IsInitialBlockDownload())); obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex())); obj.push_back(Pair("pruned", fPruneMode)); |