fix rpc batching univalue issue

This commit is contained in:
Jonas Schnelli 2015-06-02 11:41:00 +02:00 committed by Jack Grigg
parent d014114d67
commit bf3f56025d
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ static UniValue JSONRPCExecOne(const UniValue& req)
static string JSONRPCExecBatch(const UniValue& vReq) static string JSONRPCExecBatch(const UniValue& vReq)
{ {
UniValue ret; UniValue ret(UniValue::VARR);
for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++) for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++)
ret.push_back(JSONRPCExecOne(vReq[reqIdx])); ret.push_back(JSONRPCExecOne(vReq[reqIdx]));