diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-02 12:28:54 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-04 09:16:21 +0200 |
commit | c7fbbc7e1d7b076f68f0b2d87f7e86faba5d3a26 (patch) | |
tree | 62e6715d00ec972f0d574bd36cc7b69e1c1e56e5 /src | |
parent | 8f7e4abbe6d6c814f5f3c069e5b3067920689dbe (diff) |
fix missing univalue types during constructing
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcblockchain.cpp | 4 | ||||
-rw-r--r-- | src/rpcmisc.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index e3f17b4ae7..e45368cb97 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())); diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index f5fc22aff1..fe6eb81b84 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -312,7 +312,7 @@ UniValue createmultisig(const UniValue& params, bool fHelp) CScriptID innerID(inner); CBitcoinAddress address(innerID); - UniValue result; + UniValue result(UniValue::VOBJ); result.push_back(Pair("address", address.ToString())); result.push_back(Pair("redeemScript", HexStr(inner.begin(), inner.end()))); |