fix(net, discv4): call find_node with valid endpoint (#8002)

This commit is contained in:
Federico Gimenez
2024-04-30 18:38:52 +02:00
committed by GitHub
parent 9153d8848f
commit 581682605c

View File

@ -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());
}
}
}
}
}