Merge pull request #2801 from karalabe/dao-hardfork-importdrop

eth/downloader: return invalid chain (peer drop) on import fails
pull/2798/head
Péter Szilágyi 8 years ago committed by GitHub
commit 7596b33506
  1. 2
      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:]

Loading…
Cancel
Save