aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-20 18:29:02 +0800
committerobscuren <geffobscura@gmail.com>2015-04-20 18:29:02 +0800
commit45da3e17e2ada226d7c82db667d263f8e004cbfc (patch)
tree627499fa3e24bbe70ed5c0c526d30d713205b106 /eth/downloader/downloader.go
parent52584596d4c9cee7adcc1c343addd19279aaac84 (diff)
downloadgo-tangerine-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.gz
go-tangerine-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.zst
go-tangerine-45da3e17e2ada226d7c82db667d263f8e004cbfc.zip
core: added chain head reset to known block
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index addcbcc44..cfc494b2f 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -472,6 +472,8 @@ func (d *Downloader) process() error {
}
break
} else if err != nil {
+ // immediatly unregister the false peer but do not disconnect
+ d.UnregisterPeer(d.activePeer)
// Reset chain completely. This needs much, much improvement.
// instead: check all blocks leading down to this block false block and remove it
blocks = nil