mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 09:24:47 +00:00
Merge pull request #7145
68637bca3
p2p: remove peers from grey and anchors lists when blocked (moneromooo-monero)
This commit is contained in:
commit
cb712bf4f8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue