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:
|
||||
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)
|
||||
pm.removePeer(peer)
|
||||
|
||||
|
|
Loading…
Reference in New Issue