forked from cerc-io/plugeth
eth/downloader: reset the chain when parent is missing during processing
This commit is contained in:
parent
745c368987
commit
13364a2dcf
@ -436,6 +436,8 @@ func (d *Downloader) process(peer *peer) error {
|
||||
if err != nil && core.IsParentErr(err) {
|
||||
glog.V(logger.Debug).Infoln("Aborting process due to missing parent.")
|
||||
|
||||
// XXX this needs a lot of attention
|
||||
blocks = nil
|
||||
break
|
||||
} else if err != nil {
|
||||
// immediatly unregister the false peer but do not disconnect
|
||||
|
Loading…
Reference in New Issue
Block a user