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)
downloaddexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar
dexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.gz
dexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.bz2
dexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.lz
dexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.xz
dexon-45da3e17e2ada226d7c82db667d263f8e004cbfc.tar.zst
dexon-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