Browse Source
fix missing univalue types during constructing
pull/4/head
Jonas Schnelli
9 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
2 changed files with
3 additions and
3 deletions
-
src/rpcblockchain.cpp
-
src/rpcmisc.cpp
|
|
@ -228,7 +228,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); |
|
|
@ -714,7 +714,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())); |
|
|
|
|
|
|
|
|
|
@ -376,7 +376,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()))); |
|
|
|
|
|
|
|