From 13364a2dcf08924605408ae0e9233ea8e51d37fb Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 29 Apr 2015 13:40:39 +0200 Subject: [PATCH] eth/downloader: reset the chain when parent is missing during processing --- eth/downloader/downloader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 63d202a7fb..a3917854f2 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -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