aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-12-26 13:57:54 -0800
committerAlexander Blair <snipa@jagtech.io>2020-12-26 13:57:54 -0800
commite08d37fc7bfe5906c575d2a1db4477faa3590de0 (patch)
treebca14f3fb8241cad7dac0253654d65e607081e2b
parentMerge pull request #7139 (diff)
parentp2p: remove peers from grey and anchors lists when blocked (diff)
downloadmonero-e08d37fc7bfe5906c575d2a1db4477faa3590de0.tar.xz
Merge pull request #7146
3bb748ad9 p2p: remove peers from grey and anchors lists when blocked (moneromooo-monero)
-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 054ea7952..03ab04b21 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);