diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-05-28 14:07:31 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-05-28 14:10:39 +0100 |
commit | bac366e1736aa60ea815c8b5d19251118495dc52 (patch) | |
tree | 5e2b7bf8aa0c301d0507181b0b0b85e528622e5c /src | |
parent | net_peerlist: fix grayt/white naming mismatch (diff) | |
download | monero-bac366e1736aa60ea815c8b5d19251118495dc52.tar.xz |
core_rpc_server: reenable print_pl
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 561161950..898b6a4b0 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -349,10 +349,10 @@ namespace cryptonote //------------------------------------------------------------------------------------------------------------------------------ bool core_rpc_server::on_get_peer_list(const COMMAND_RPC_GET_PEER_LIST::request& req, COMMAND_RPC_GET_PEER_LIST::response& res) { - /* std::list<nodetool::peerlist_entry> white_list; std::list<nodetool::peerlist_entry> gray_list; - m_p2p.get_peerlist(white_list, gray_list); + m_p2p.get_peerlist_manager().get_peerlist_full(white_list, gray_list); + for (auto & entry : white_list) { @@ -364,7 +364,6 @@ namespace cryptonote res.gray_list.emplace_back(entry.id, entry.adr.ip, entry.adr.port, entry.last_seen); } - */ res.status = CORE_RPC_STATUS_OK; return true; } |