From 68637bca3f32ae41e1e569e8e880b63b4795722a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 13 Dec 2020 23:27:07 +0000 Subject: p2p: remove peers from grey and anchors lists when blocked --- src/p2p/net_node.inl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/p2p') diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 8000835c4..e32e7c31c 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -260,6 +260,8 @@ namespace nodetool peerlist_entry pe{}; pe.adr = addr; zone.second.m_peerlist.remove_from_peer_white(pe); + zone.second.m_peerlist.remove_from_peer_gray(pe); + zone.second.m_peerlist.remove_from_peer_anchor(addr); for (const auto &c: conns) zone.second.m_net_server.get_config_object().close(c); -- cgit v1.2.3