mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-24 18:42:23 +00:00
[release/1.4.10] eth/downloader: return invalid chain (peer drop) on import fails
(cherry picked from commit a691aa2a13)
This commit is contained in:
parent
da776556d0
commit
d0668838b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue