Skip to content

Commit

Permalink
[release/1.4.10] eth/downloader: return invalid chain (peer drop) on …
Browse files Browse the repository at this point in the history
…import fails

(cherry picked from commit a691aa2)
  • Loading branch information
karalabe committed Jul 16, 2016
1 parent da77655 commit d066883
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 d066883

Please sign in to comment.