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 4133c4a commit e223a80fa52d1a99af0b244ca9809780acc38ecf
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 e223a80

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