p2p: remove peers from grey and anchors lists when blocked

This commit is contained in:
moneromooo-monero 2020-12-13 23:27:07 +00:00
parent ebdc617408
commit 68637bca3f
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -260,6 +260,8 @@ namespace nodetool
peerlist_entry pe{}; peerlist_entry pe{};
pe.adr = addr; pe.adr = addr;
zone.second.m_peerlist.remove_from_peer_white(pe); 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) for (const auto &c: conns)
zone.second.m_net_server.get_config_object().close(c); zone.second.m_net_server.get_config_object().close(c);