From c7fbbc7e1d7b076f68f0b2d87f7e86faba5d3a26 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Tue, 2 Jun 2015 12:28:54 +0200 Subject: fix missing univalue types during constructing --- src/rpcblockchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpcblockchain.cpp') diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index e3f17b4ae..e45368cb9 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -206,7 +206,7 @@ UniValue getrawmempool(const UniValue& params, bool fHelp) setDepends.insert(txin.prevout.hash.ToString()); } - UniValue depends; + UniValue depends(UniValue::VARR); BOOST_FOREACH(const string& dep, setDepends) { depends.push_back(dep); @@ -635,7 +635,7 @@ UniValue getmempoolinfo(const UniValue& params, bool fHelp) + HelpExampleRpc("getmempoolinfo", "") ); - UniValue ret; + UniValue ret(UniValue::VOBJ); ret.push_back(Pair("size", (int64_t) mempool.size())); ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize())); -- cgit v1.2.3