Correct discovery update

This commit is contained in:
Age Manning
2020-05-06 21:35:41 +10:00
2 changed files with 59 additions and 38 deletions

View File

@@ -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