eth: add log message for ENR filtering failures

This commit is contained in:
Felix Lange 2025-07-28 12:48:06 +02:00
parent 32d537cd58
commit f55ff4a99f

View file

@ -537,7 +537,10 @@ func (s *Ethereum) setupDiscovery() error {
// RequestENR does not yet support context. It will simply time out. // RequestENR does not yet support context. It will simply time out.
// If the ENR can't be resolved, RequestENR will return nil. We don't // If the ENR can't be resolved, RequestENR will return nil. We don't
// care about the specific error here, so we ignore it. // care about the specific error here, so we ignore it.
nn, _ := s.p2pServer.DiscoveryV4().RequestENR(enr) nn, err := s.p2pServer.DiscoveryV4().RequestENR(enr)
if err != nil {
log.Debug("Filtered dial node", "id", enr.ID(), "err", err)
}
return nn return nn
} }
iter = enode.AsyncFilter(iter, resolverFunc, maxParallelENRRequests) iter = enode.AsyncFilter(iter, resolverFunc, maxParallelENRRequests)