aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-07-12 00:00:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-07-12 00:00:49 +0800
commita691aa2a13a97588208246b5e7bc70c2e3f15780 (patch)
tree9e1167d789b5f8011208adaf4e03dae85876a328 /eth
parent2b94d7fc7fa93ecfd5ab6ddaa0c7bf4d2224d2be (diff)
downloaddexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar.gz
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar.bz2
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar.lz
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar.xz
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.tar.zst
dexon-a691aa2a13a97588208246b5e7bc70c2e3f15780.zip
eth/downloader: return invalid chain (peer drop) on import fails
Diffstat (limited to 'eth')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 92124cfeb..01c0818a0 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -1859,7 +1859,7 @@ func (d *Downloader) processContent() error {
}
if err != nil {
glog.V(logger.Debug).Infof("Result #%d [%x…] processing failed: %v", results[index].Header.Number, results[index].Header.Hash().Bytes()[:4], err)
- return err
+ return errInvalidChain
}
// Shift the results to the next batch
results = results[items:]