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 committed by wowario
parent a88448499b
commit 819d40fc7e
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,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);