aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-13 23:27:07 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-13 23:27:44 +0000
commit68637bca3f32ae41e1e569e8e880b63b4795722a (patch)
tree0af240ba000a799249a7eca644329b70b1f786dc /src/p2p
parentMerge pull request #7102 (diff)
downloadmonero-68637bca3f32ae41e1e569e8e880b63b4795722a.tar.xz
p2p: remove peers from grey and anchors lists when blocked
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 8000835c4..e32e7c31c 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -260,6 +260,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);