mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-27 23:15:25 +00:00
eth: drop a sync peer if it sends an invalid hash chain
This commit is contained in:
parent
72411eb24c
commit
9ad515d2dc
@ -101,7 +101,7 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
|
|||||||
case downloader.ErrBusy:
|
case downloader.ErrBusy:
|
||||||
glog.V(logger.Debug).Infof("Synchronisation already in progress")
|
glog.V(logger.Debug).Infof("Synchronisation already in progress")
|
||||||
|
|
||||||
case downloader.ErrTimeout, downloader.ErrBadPeer:
|
case downloader.ErrTimeout, downloader.ErrBadPeer, downloader.ErrInvalidChain:
|
||||||
glog.V(logger.Debug).Infof("Removing peer %v: %v", peer.id, err)
|
glog.V(logger.Debug).Infof("Removing peer %v: %v", peer.id, err)
|
||||||
pm.removePeer(peer)
|
pm.removePeer(peer)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user