eth: don't import propagated blocks during fastsync

This commit is contained in:
Péter Szilágyi
2017-05-26 16:04:12 +03:00
parent cb809c03da
commit afdd23b5ca
2 changed files with 6 additions and 0 deletions

View File

@ -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 {