diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-07-12 00:00:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-07-12 00:00:49 +0800 |
commit | a691aa2a13a97588208246b5e7bc70c2e3f15780 (patch) | |
tree | 9e1167d789b5f8011208adaf4e03dae85876a328 /eth/downloader | |
parent | 2b94d7fc7fa93ecfd5ab6ddaa0c7bf4d2224d2be (diff) | |
download | dexon-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/downloader')
-rw-r--r-- | eth/downloader/downloader.go | 2 |
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:] |