eth/downloader: don't run processFullSyncContent in LightSync mode

This commit is contained in:
Felix Lange 2017-05-31 03:30:52 +02:00 committed by Péter Szilágyi
parent 6588e66420
commit 5029223881
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -450,7 +450,7 @@ func (d *Downloader) syncWithPeer(p *peer, hash common.Hash, td *big.Int) (err e
}
if d.mode == FastSync {
fetchers = append(fetchers, func() error { return d.processFastSyncContent(latest) })
} else {
} else if d.mode == FullSync {
fetchers = append(fetchers, d.processFullSyncContent)
}
err = d.spawnSync(fetchers)