eth: drop a sync peer if it sends an invalid hash chain

This commit is contained in:
Péter Szilágyi 2015-05-15 12:01:05 +03:00
parent 72411eb24c
commit 9ad515d2dc
1 changed files with 1 additions and 1 deletions

View File

@ -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)