| 68 | } |
| 69 | |
| 70 | UniValue JSONRPCError(int code, const std::string& message) |
| 71 | { |
| 72 | UniValue error(UniValue::VOBJ); |
| 73 | error.pushKV("code", code); |
| 74 | error.pushKV("message", message); |
| 75 | return error; |
| 76 | } |
| 77 | |
| 78 | /** Username used when cookie authentication is in use (arbitrary, only for |
| 79 | * recognizability in debugging/logging purposes) |