diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-12-26 13:57:54 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-12-26 13:57:54 -0800 |
commit | e08d37fc7bfe5906c575d2a1db4477faa3590de0 (patch) | |
tree | bca14f3fb8241cad7dac0253654d65e607081e2b /src/p2p | |
parent | Merge pull request #7139 (diff) | |
parent | p2p: remove peers from grey and anchors lists when blocked (diff) | |
download | monero-e08d37fc7bfe5906c575d2a1db4477faa3590de0.tar.xz |
Merge pull request #7146
3bb748ad9 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 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); |