Skip to content

Commit 7596b33

Browse files
authored
Merge pull request #2801 from karalabe/dao-hardfork-importdrop
eth/downloader: return invalid chain (peer drop) on import fails
2 parents 2b7aff2 + a691aa2 commit 7596b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ func (d *Downloader) processContent() error {
18591859
}
18601860
if err != nil {
18611861
glog.V(logger.Debug).Infof("Result #%d [%x…] processing failed: %v", results[index].Header.Number, results[index].Header.Hash().Bytes()[:4], err)
1862-
return err
1862+
return errInvalidChain
18631863
}
18641864
// Shift the results to the next batch
18651865
results = results[items:]

0 commit comments

Comments
 (0)