From 9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 15 May 2015 12:01:05 +0300 Subject: [PATCH] eth: drop a sync peer if it sends an invalid hash chain --- eth/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/sync.go b/eth/sync.go index 73f6253be..cc1fe80ea 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -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)