Skip to content
Permalink
Browse files

Fix in_peers/out_peers RPC operations

Original implementations could never have worked.
  • Loading branch information...
erikd committed Jan 21, 2018
1 parent 75575f7 commit b0fc5525935a14b568d1e3cf01d3cff7c85d3eb7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit b0fc552

Please sign in to comment.
You can’t perform that action at this time.