Browse Source

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.
pull/4/head
Jack Grigg 7 years ago
parent
commit
8e95a12b63
No known key found for this signature in database GPG Key ID: 665DBCD284F7DAFF
  1. 2
      src/rpcblockchain.cpp

2
src/rpcblockchain.cpp

@ -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);

Loading…
Cancel
Save