diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-12-26 13:40:19 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-12-26 13:40:19 -0800 |
commit | cb712bf4f8a0d3782690887ad536a82186db0fbd (patch) | |
tree | d9259cc3bea0b3b6f1b9e03aed3dce7799af0c17 /src/p2p | |
parent | Merge pull request #7138 (diff) | |
parent | p2p: remove peers from grey and anchors lists when blocked (diff) | |
download | monero-cb712bf4f8a0d3782690887ad536a82186db0fbd.tar.xz |
Merge pull request #7145
68637bca3 p2p: remove peers from grey and anchors lists when blocked (moneromooo-monero)
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 4ea141bb8..6016b243f 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -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); |