| 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.push_back(Pair("result", NullUniValue)); |
| 43 | else |
| 44 | reply.push_back(Pair("result", result)); |
| 45 | reply.push_back(Pair("error", error)); |
| 46 | reply.push_back(Pair("id", id)); |
| 47 | return reply; |
| 48 | } |
| 49 | |
| 50 | string JSONRPCReply(const UniValue& result, const UniValue& error, const UniValue& id) |
| 51 | { |
no test coverage detected