381 | @@ -382,11 +382,10 @@ void JSONRPCRequest::parse(const UniValue& valRequest)
382 | throw JSONRPCError(RPC_INVALID_REQUEST, "Params must be an array or object");
383 | }
384 |
385 | -static UniValue JSONRPCExecOne(const UniValue& req)
386 | +static UniValue JSONRPCExecOne(JSONRPCRequest jreq, const UniValue& req)
Receive const std::string& uri instead?
Receive const std::string& uri instead?
Don't see the advantage, and the disadvantage is it leaves this code open to the exact same bug in the future if another field is added to JSONRPCRequest. Better to copy the whole object, IMO.