mirror of https://github.com/status-im/op-geth.git
eth/downloader: return invalid chain (peer drop) on import fails
This commit is contained in:
parent
2b94d7fc7f
commit
a691aa2a13
|
@ -1859,7 +1859,7 @@ func (d *Downloader) processContent() error {
|
||||||
}
|
}
|
||||||
if err != nil {
|
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)
|
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
|
// Shift the results to the next batch
|
||||||
results = results[items:]
|
results = results[items:]
|
||||||
|
|
Loading…
Reference in New Issue