MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PrepareRequest

Method PrepareRequest

src/bitcoin-cli.cpp:331–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329class DefaultRequestHandler: public BaseRequestHandler {
330public:
331 UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override
332 {
333 UniValue params;
334 if(gArgs.GetBoolArg("-named", DEFAULT_NAMED)) {
335 params = RPCConvertNamedValues(method, args);
336 } else {
337 params = RPCConvertValues(method, args);
338 }
339 return JSONRPCRequestObj(method, params, 1);
340 }
341
342 UniValue ProcessReply(const UniValue &reply) override
343 {

Callers

nothing calls this directly

Calls 4

RPCConvertNamedValuesFunction · 0.85
RPCConvertValuesFunction · 0.85
JSONRPCRequestObjFunction · 0.85
GetBoolArgMethod · 0.80

Tested by

no test coverage detected