diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-08-20 01:50:10 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-20 01:50:10 -0500 |
commit | c9df9d683acd361d1326814470d941d42cdd9b0f (patch) | |
tree | ff36a5c17adf5621974be829a5d9fcbe232d1055 /src/p2p/net_node.inl | |
parent | Merge pull request #5636 (diff) | |
parent | daemon: fix print_pl only printing public zone peers (diff) | |
download | monero-c9df9d683acd361d1326814470d941d42cdd9b0f.tar.xz |
Merge pull request #5696
fd60d05 daemon: fix print_pl only printing public zone peers (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r-- | src/p2p/net_node.inl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 00467132a..8c0cff7e2 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1739,6 +1739,15 @@ namespace nodetool } //----------------------------------------------------------------------------------- template<class t_payload_net_handler> + void node_server<t_payload_net_handler>::get_peerlist(std::vector<peerlist_entry>& gray, std::vector<peerlist_entry>& white) + { + for (auto &zone: m_network_zones) + { + zone.second.m_peerlist.get_peerlist(gray, white); // appends + } + } + //----------------------------------------------------------------------------------- + template<class t_payload_net_handler> bool node_server<t_payload_net_handler>::idle_worker() { m_peer_handshake_idle_maker_interval.do_call(boost::bind(&node_server<t_payload_net_handler>::peer_sync_idle_maker, this)); |