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

Function JSONRPCReplyObj

src/rpc/protocol.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35UniValue JSONRPCReplyObj(const UniValue& result, const UniValue& error, const UniValue& id)
36{
37 UniValue reply(UniValue::VOBJ);
38 if (!error.isNull())
39 reply.pushKV("result", NullUniValue);
40 else
41 reply.pushKV("result", result);
42 reply.pushKV("error", error);
43 reply.pushKV("id", id);
44 return reply;
45}
46
47std::string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id)
48{

Callers 3

ProcessReplyMethod · 0.85
JSONRPCReplyFunction · 0.85
JSONRPCExecOneFunction · 0.85

Calls 2

isNullMethod · 0.80
pushKVMethod · 0.45

Tested by

no test coverage detected