core_rpc_server: reenable print_pl

This commit is contained in:
moneromooo-monero 2015-05-28 14:07:31 +01:00
parent 39a9508a20
commit bac366e173
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 3 deletions

View File

@ -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) 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> white_list;
std::list<nodetool::peerlist_entry> gray_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) 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.gray_list.emplace_back(entry.id, entry.adr.ip, entry.adr.port, entry.last_seen);
} }
*/
res.status = CORE_RPC_STATUS_OK; res.status = CORE_RPC_STATUS_OK;
return true; return true;
} }