|
|
@ -889,6 +889,7 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) |
|
|
|
" \"difficulty\": xxxxxx, (numeric) the current difficulty\n" |
|
|
|
" \"verificationprogress\": xxxx, (numeric) estimate of verification progress [0..1]\n" |
|
|
|
" \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n" |
|
|
|
" \"size_on_disk\": xxxxxx, (numeric) the estimated size of the block and undo files on disk\n" |
|
|
|
" \"commitments\": xxxxxx, (numeric) the current number of note commitments in the commitment tree\n" |
|
|
|
" \"softforks\": [ (array) status of softforks in progress\n" |
|
|
|
" {\n" |
|
|
@ -920,6 +921,7 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) |
|
|
|
obj.push_back(Pair("verificationprogress", Checkpoints::GuessVerificationProgress(Params().Checkpoints(), chainActive.Tip()))); |
|
|
|
obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex())); |
|
|
|
obj.push_back(Pair("pruned", fPruneMode)); |
|
|
|
obj.push_back(Pair("size_on_disk", CalculateCurrentUsage())); |
|
|
|
|
|
|
|
ZCIncrementalMerkleTree tree; |
|
|
|
pcoinsTip->GetAnchorAt(pcoinsTip->GetBestAnchor(), tree); |
|
|
|