mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Correct discovery update
This commit is contained in:
@@ -196,15 +196,13 @@ impl<TSpec: EthSpec> Discovery<TSpec> {
|
||||
return Some(enr.clone());
|
||||
}
|
||||
// not in the local cache, look in the routing table
|
||||
/* TODO: Correct this function
|
||||
if let Some(node_id) = peer_id_to_node_id(peer_id) {
|
||||
// TODO: Need to update discv5
|
||||
// self.discovery.find_enr(&node_id)
|
||||
if let Ok(_node_id) = enr_ext::peer_id_to_node_id(peer_id) {
|
||||
// TODO: Need to update discv5
|
||||
// self.discovery.find_enr(&node_id)
|
||||
return None;
|
||||
} else {
|
||||
None
|
||||
return None;
|
||||
}
|
||||
*/
|
||||
None
|
||||
}
|
||||
|
||||
/// Adds/Removes a subnet from the ENR Bitfield
|
||||
|
||||
Reference in New Issue
Block a user