mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
eth: add log message for ENR filtering failures
This commit is contained in:
parent
32d537cd58
commit
f55ff4a99f
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue