Merge pull request #7146

3bb748ad9 p2p: remove peers from grey and anchors lists when blocked (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-12-26 13:57:54 -08:00
commit e08d37fc7b
No known key found for this signature in database
GPG key ID: C64552D877C32479

View file

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