diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-15 18:14:46 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-15 20:01:58 +0800 |
commit | 83226762c20dbf48939d76046ad32422a44feda0 (patch) | |
tree | dbef36842a0c42a8e9543393eb1b5208aaaf227b /eth/sync.go | |
parent | 9ad515d2dc62c5d1ce1099efa89bd0a0b3f06a67 (diff) | |
download | dexon-83226762c20dbf48939d76046ad32422a44feda0.tar.gz dexon-83226762c20dbf48939d76046ad32422a44feda0.tar.zst dexon-83226762c20dbf48939d76046ad32422a44feda0.zip |
eth, eth/downloader: detect and handle madeup hash attacks
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 cc1fe80ea..aa7ebc77b 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, downloader.ErrInvalidChain: + case downloader.ErrTimeout, downloader.ErrBadPeer, downloader.ErrInvalidChain, downloader.ErrCrossCheckFailed: glog.V(logger.Debug).Infof("Removing peer %v: %v", peer.id, err) pm.removePeer(peer) |