mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(net, discv4): call find_node with valid endpoint (#8002)
This commit is contained in:
@ -1387,7 +1387,16 @@ impl Discv4Service {
|
||||
BucketEntry::SelfEntry => {
|
||||
// we received our own node entry
|
||||
}
|
||||
_ => self.find_node(&closest, ctx.clone()),
|
||||
BucketEntry::Present(mut entry, _) => {
|
||||
if entry.value_mut().has_endpoint_proof {
|
||||
self.find_node(&closest, ctx.clone());
|
||||
}
|
||||
}
|
||||
BucketEntry::Pending(mut entry, _) => {
|
||||
if entry.value().has_endpoint_proof {
|
||||
self.find_node(&closest, ctx.clone());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user