aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-26 21:04:12 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-05-26 21:04:12 +0800
commitafdd23b5cab227ae6edef3d78ec74b05c7872b55 (patch)
tree3a6f2cf91e1db4744b61f37e8fd7442cd574c681 /eth/sync.go
parentcb809c03da18bf45f961a931dfd4c765de144e66 (diff)
downloadgo-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar.gz
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar.bz2
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar.lz
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar.xz
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.tar.zst
go-tangerine-afdd23b5cab227ae6edef3d78ec74b05c7872b55.zip
eth: don't import propagated blocks during fastsync
Diffstat (limited to 'eth/sync.go')
-rw-r--r--eth/sync.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/eth/sync.go b/eth/sync.go
index b0653acf9..8784b225d 100644
--- a/eth/sync.go
+++ b/eth/sync.go
@@ -183,6 +183,7 @@ func (pm *ProtocolManager) synchronise(peer *peer) {
// The only scenario where this can happen is if the user manually (or via a
// bad block) rolled back a fast sync node below the sync point. In this case
// however it's safe to reenable fast sync.
+ atomic.StoreUint32(&pm.fastSync, 1)
mode = downloader.FastSync
}
if err := pm.downloader.Synchronise(peer.id, pHead, pTd, mode); err != nil {