Skip to content

Commit c7fbbc7

Browse files
committed
fix missing univalue types during constructing
1 parent 8f7e4ab commit c7fbbc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rpcblockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ UniValue getrawmempool(const UniValue& params, bool fHelp)
206206
setDepends.insert(txin.prevout.hash.ToString());
207207
}
208208

209-
UniValue depends;
209+
UniValue depends(UniValue::VARR);
210210
BOOST_FOREACH(const string& dep, setDepends)
211211
{
212212
depends.push_back(dep);
@@ -635,7 +635,7 @@ UniValue getmempoolinfo(const UniValue& params, bool fHelp)
635635
+ HelpExampleRpc("getmempoolinfo", "")
636636
);
637637

638-
UniValue ret;
638+
UniValue ret(UniValue::VOBJ);
639639
ret.push_back(Pair("size", (int64_t) mempool.size()));
640640
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
641641

src/rpcmisc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ UniValue createmultisig(const UniValue& params, bool fHelp)
312312
CScriptID innerID(inner);
313313
CBitcoinAddress address(innerID);
314314

315-
UniValue result;
315+
UniValue result(UniValue::VOBJ);
316316
result.push_back(Pair("address", address.ToString()));
317317
result.push_back(Pair("redeemScript", HexStr(inner.begin(), inner.end())));
318318

0 commit comments

Comments
 (0)