|
|
@ -533,6 +533,7 @@ Value getblockchaininfo(const Array& 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" |
|
|
|
" \"commitments\": xxxxxx, (numeric) the current number of note commitments in the commitment tree\n" |
|
|
|
" \"softforks\": [ (array) status of softforks in progress\n" |
|
|
|
" {\n" |
|
|
|
" \"id\": \"xxxx\", (string) name of softfork\n" |
|
|
@ -564,6 +565,10 @@ Value getblockchaininfo(const Array& params, bool fHelp) |
|
|
|
obj.push_back(Pair("chainwork", chainActive.Tip()->nChainWork.GetHex())); |
|
|
|
obj.push_back(Pair("pruned", fPruneMode)); |
|
|
|
|
|
|
|
ZCIncrementalMerkleTree tree; |
|
|
|
pcoinsTip->GetAnchorAt(pcoinsTip->GetBestAnchor(), tree); |
|
|
|
obj.push_back(Pair("commitments", tree.size())); |
|
|
|
|
|
|
|
const Consensus::Params& consensusParams = Params().GetConsensus(); |
|
|
|
CBlockIndex* tip = chainActive.Tip(); |
|
|
|
Array softforks; |
|
|
|