From 8e95a12b6380e2124b560b4b166159f310e3f125 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 22 Dec 2017 23:50:14 +0000 Subject: [PATCH] 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. --- src/rpcblockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 1c6c78bc2..2ef75a70a 100644 --- a/src/rpcblockchain.cpp +++ b/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(tree.size()))); CBlockIndex* tip = chainActive.Tip(); UniValue valuePools(UniValue::VARR);