Skip to content

Commit

Permalink
Merge pull request #2801 from karalabe/dao-hardfork-importdrop
Browse files Browse the repository at this point in the history
eth/downloader: return invalid chain (peer drop) on import fails
  • Loading branch information
karalabe authored Jul 12, 2016
2 parents 2b7aff2 + a691aa2 commit 7596b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 7596b33

Please sign in to comment.