| 261 | |
| 262 | public: |
| 263 | UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override |
| 264 | { |
| 265 | if (!args.empty()) { |
| 266 | throw std::runtime_error("-addrinfo takes no arguments"); |
| 267 | } |
| 268 | UniValue params{RPCConvertValues("getnodeaddresses", std::vector<std::string>{{"0"}})}; |
| 269 | return JSONRPCRequestObj("getnodeaddresses", params, 1); |
| 270 | } |
| 271 | |
| 272 | UniValue ProcessReply(const UniValue& reply) override |
| 273 | { |
nothing calls this directly
no test coverage detected