@@ -497,13 +497,13 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
497497 // first try and convert the peer_id to a node_id.
498498 if let Ok ( node_id) = peer_id_to_node_id ( peer_id) {
499499 // If we could convert this peer id, remove it from the DHT and ban it from discovery.
500- self . discv5 . ban_node ( & node_id) ;
500+ self . discv5 . ban_node ( & node_id, None ) ;
501501 // Remove the node from the routing table.
502502 self . discv5 . remove_node ( & node_id) ;
503503 }
504504
505505 for ip_address in ip_addresses {
506- self . discv5 . ban_ip ( ip_address) ;
506+ self . discv5 . ban_ip ( ip_address, None ) ;
507507 }
508508 }
509509
@@ -512,11 +512,11 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
512512 // first try and convert the peer_id to a node_id.
513513 if let Ok ( node_id) = peer_id_to_node_id ( peer_id) {
514514 // If we could convert this peer id, remove it from the DHT and ban it from discovery.
515- self . discv5 . permit_node ( & node_id) ;
515+ self . discv5 . ban_node_remove ( & node_id) ;
516516 }
517517
518518 for ip_address in ip_addresses {
519- self . discv5 . permit_ip ( ip_address) ;
519+ self . discv5 . ban_ip_remove ( & ip_address) ;
520520 }
521521 }
522522
@@ -944,7 +944,9 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
944944 * self . network_globals . local_enr . write ( ) = enr;
945945 return Poll :: Ready ( DiscoveryEvent :: SocketUpdated ( socket) ) ;
946946 }
947- _ => { } // Ignore all other discv5 server events
947+ Discv5Event :: EnrAdded { .. }
948+ | Discv5Event :: TalkRequest ( _)
949+ | Discv5Event :: NodeInserted { .. } => { } // Ignore all other discv5 server events
948950 }
949951 }
950952 }
0 commit comments