good morning!!!!

Skip to content
Snippets Groups Projects
Commit 13364a2d authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

eth/downloader: reset the chain when parent is missing during processing

parent 745c3689
Branches
Tags
No related merge requests found
...@@ -436,6 +436,8 @@ func (d *Downloader) process(peer *peer) error { ...@@ -436,6 +436,8 @@ func (d *Downloader) process(peer *peer) error {
if err != nil && core.IsParentErr(err) { if err != nil && core.IsParentErr(err) {
glog.V(logger.Debug).Infoln("Aborting process due to missing parent.") glog.V(logger.Debug).Infoln("Aborting process due to missing parent.")
// XXX this needs a lot of attention
blocks = nil
break break
} else if err != nil { } else if err != nil {
// immediatly unregister the false peer but do not disconnect // immediatly unregister the false peer but do not disconnect
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment