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