| 33 | } |
| 34 | |
| 35 | UniValue 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 | |
| 47 | std::string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id) |
| 48 | { |
no test coverage detected