aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-26 13:40:19 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-26 13:40:19 -0800
commitcb712bf4f8a0d3782690887ad536a82186db0fbd (patch)
treed9259cc3bea0b3b6f1b9e03aed3dce7799af0c17 /src/p2p
parentMerge pull request #7138 (diff)
parentp2p: remove peers from grey and anchors lists when blocked (diff)
downloadmonero-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.inl2
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);