| 780 | /** Process default single requests */ |
| 781 | struct DefaultRequestHandler : BaseRequestHandler { |
| 782 | UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override |
| 783 | { |
| 784 | UniValue params; |
| 785 | if(gArgs.GetBoolArg("-named", DEFAULT_NAMED)) { |
| 786 | params = RPCConvertNamedValues(method, args); |
| 787 | } else { |
| 788 | params = RPCConvertValues(method, args); |
| 789 | } |
| 790 | UniValue id{UniValue::VSTR, gArgs.GetArg("-rpcid", DEFAULT_RPC_REQ_ID)}; |
| 791 | return JSONRPCRequestObj(method, params, id); |
| 792 | } |
| 793 | |
| 794 | UniValue ProcessReply(const UniValue &reply) override |
| 795 | { |
nothing calls this directly
no test coverage detected