| 54 | } |
| 55 | |
| 56 | UniValue JSONRPCError(int code, const std::string& message) |
| 57 | { |
| 58 | UniValue error(UniValue::VOBJ); |
| 59 | error.pushKV("code", code); |
| 60 | error.pushKV("message", message); |
| 61 | return error; |
| 62 | } |
| 63 | |
| 64 | /** Username used when cookie authentication is in use (arbitrary, only for |
| 65 | * recognizability in debugging/logging purposes) |