diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-15 17:01:05 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-15 20:01:58 +0800 |
commit | 9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67 (patch) | |
tree | 9be9124316bc6ebaf59efc8fd0afbab04578d99f /eth/sync.go | |
parent | 72411eb24c47a6b41d8530e6057a88c60491f0e1 (diff) | |
download | go-tangerine-9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67.tar.gz go-tangerine-9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67.tar.zst go-tangerine-9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67.zip |
eth: drop a sync peer if it sends an invalid hash chain
Diffstat (limited to 'eth/sync.go')
-rw-r--r-- | eth/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |