eth: continue after whitelist check

This commit is contained in:
Martin Holst Swende 2022-01-07 14:12:43 +01:00
parent 127ce93db4
commit 0dec47b5c0
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0

View File

@ -433,7 +433,7 @@ func (h *handler) runEthPeer(peer *eth.Peer, handler eth.Handler) error {
return
}
peer.Log().Debug("Whitelist block verified", "number", number, "hash", hash)
res.Done <- nil
case <-timeout.C:
peer.Log().Warn("Whitelist challenge timed out, dropping", "addr", peer.RemoteAddr(), "type", peer.Name())
h.removePeer(peer.ID())