From a691aa2a13a97588208246b5e7bc70c2e3f15780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 11 Jul 2016 19:00:49 +0300 Subject: eth/downloader: return invalid chain (peer drop) on import fails --- eth/downloader/downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:] -- cgit v1.2.3