Commit 9ad515d2 authored by Péter Szilágyi's avatar Péter Szilágyi

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

parent 72411eb2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment