diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-21 19:34:46 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-01-29 11:54:57 +1100 |
commit | 628b78ae8ac5e702c0f33c5231877e8405e1b417 (patch) | |
tree | 382310fffa3017160b48bc6f6d80bca2e7a98b2a /src | |
parent | rpc_client: Fix error handling (diff) | |
download | monero-628b78ae8ac5e702c0f33c5231877e8405e1b417.tar.xz |
Fix in_peers/out_peers RPC operations
Original implementations could never have worked.
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index af9c05bc7..0ae0fd2cc 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -1262,7 +1262,7 @@ bool t_rpc_command_executor::out_peers(uint64_t limit) if (m_is_rpc) { - if (!m_rpc_client->json_rpc_request(req, res, "out_peers", fail_message.c_str())) + if (!m_rpc_client->rpc_request(req, res, "/out_peers", fail_message.c_str())) { return true; } @@ -1294,7 +1294,7 @@ bool t_rpc_command_executor::in_peers(uint64_t limit) if (m_is_rpc) { - if (!m_rpc_client->json_rpc_request(req, res, "in_peers", fail_message.c_str())) + if (!m_rpc_client->rpc_request(req, res, "/in_peers", fail_message.c_str())) { return true; } |