Skip to content

Commit

Permalink
Fix in_peers/out_peers RPC operations
Browse files Browse the repository at this point in the history
Original implementations could never have worked.
  • Loading branch information
erikd committed Jan 26, 2018
1 parent 75575f7 commit b0fc552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/rpc_command_executor.cpp
Expand Up @@ -1262,7 +1262,7 @@ bool t_rpc_command_executor::out_peers(uint64_t limit)


if (m_is_rpc) 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; return true;
} }
Expand Down Expand Up @@ -1294,7 +1294,7 @@ bool t_rpc_command_executor::in_peers(uint64_t limit)


if (m_is_rpc) 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; return true;
} }
Expand Down

0 comments on commit b0fc552

Please sign in to comment.