mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
rpc: Add "jsonrpc" field and drop null "result"/"error" fields
Only for JSON-RPC 2.0 requests.
This commit is contained in:
@@ -364,7 +364,7 @@ UniValue JSONRPCExec(const JSONRPCRequest& jreq)
|
||||
// but inside a batch, we just include the error object and return HTTP 200
|
||||
UniValue result = tableRPC.execute(jreq);
|
||||
|
||||
return JSONRPCReplyObj(std::move(result), NullUniValue, jreq.id);
|
||||
return JSONRPCReplyObj(std::move(result), NullUniValue, jreq.id, jreq.m_json_version);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user