diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-13 23:27:07 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-13 23:27:56 +0000 |
commit | 3bb748ad94648f2186545ee542d45035d7d1ead4 (patch) | |
tree | ecb03ff2c7d67e3d04c05025e3841eb71459224f /src/p2p | |
parent | Merge pull request #7131 (diff) | |
download | monero-3bb748ad94648f2186545ee542d45035d7d1ead4.tar.xz |
p2p: remove peers from grey and anchors lists when blocked
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 65db2615c..eabee9fbf 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); |