Skip to content

Commit

Permalink
fix missing univalue types during constructing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Jun 4, 2015
1 parent 8f7e4ab commit c7fbbc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rpcblockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()));

Expand Down
2 changes: 1 addition & 1 deletion src/rpcmisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())));

Expand Down

0 comments on commit c7fbbc7

Please sign in to comment.