aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-07-12 20:22:13 +0800
committerGitHub <noreply@github.com>2016-07-12 20:22:13 +0800
commit7596b33506d7304a24705a7feee2485d4064e982 (patch)
tree3c167d25a6c01e65a030d84c45cb5a4f308223cc
parent2b7aff202a84e8c8a8f461df3219c5618221ef3f (diff)
parenta691aa2a13a97588208246b5e7bc70c2e3f15780 (diff)
downloadgo-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar.gz
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar.bz2
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar.lz
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar.xz
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.tar.zst
go-tangerine-7596b33506d7304a24705a7feee2485d4064e982.zip
Merge pull request #2801 from karalabe/dao-hardfork-importdrop
eth/downloader: return invalid chain (peer drop) on import fails
-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:]