| 36 | } |
| 37 | |
| 38 | UniValue JSONRPCReplyObj(const UniValue& result, const UniValue& error, const UniValue& id) |
| 39 | { |
| 40 | UniValue reply(UniValue::VOBJ); |
| 41 | if (!error.isNull()) |
| 42 | reply.pushKV("result", NullUniValue); |
| 43 | else |
| 44 | reply.pushKV("result", result); |
| 45 | reply.pushKV("error", error); |
| 46 | reply.pushKV("id", id); |
| 47 | return reply; |
| 48 | } |
| 49 | |
| 50 | std::string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id) |
| 51 | { |
no test coverage detected