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