Cast ZCIncrementalMerkleTree::size() to uint64_t before passing to UniValue

size_t is ambiguous for serialization, and UniValue doesn't have an API for
handling this internally.
This commit is contained in:
Jack Grigg
2017-12-22 23:50:14 +00:00
parent f0118aaa0b
commit 8e95a12b63

View File

@@ -753,7 +753,7 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
ZCIncrementalMerkleTree tree;
pcoinsTip->GetAnchorAt(pcoinsTip->GetBestAnchor(), tree);
obj.push_back(Pair("commitments", tree.size()));
obj.push_back(Pair("commitments", static_cast<uint64_t>(tree.size())));
CBlockIndex* tip = chainActive.Tip();
UniValue valuePools(UniValue::VARR);