mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Remove wrong duplicated comment (#2751)
## Issue Addressed Remove wrong duplicated comment. Comment was copied from ban_peer() but doesn't apply to unban_peer()
This commit is contained in:
@@ -563,7 +563,6 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
|
|||||||
pub fn unban_peer(&mut self, peer_id: &PeerId, ip_addresses: Vec<IpAddr>) {
|
pub fn unban_peer(&mut self, peer_id: &PeerId, ip_addresses: Vec<IpAddr>) {
|
||||||
// first try and convert the peer_id to a node_id.
|
// first try and convert the peer_id to a node_id.
|
||||||
if let Ok(node_id) = peer_id_to_node_id(peer_id) {
|
if let Ok(node_id) = peer_id_to_node_id(peer_id) {
|
||||||
// If we could convert this peer id, remove it from the DHT and ban it from discovery.
|
|
||||||
self.discv5.ban_node_remove(&node_id);
|
self.discv5.ban_node_remove(&node_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user