mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
eth/downloader: don't run processFullSyncContent in LightSync mode
This commit is contained in:
parent
6588e66420
commit
5029223881
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ func (d *Downloader) syncWithPeer(p *peer, hash common.Hash, td *big.Int) (err e
|
||||||
}
|
}
|
||||||
if d.mode == FastSync {
|
if d.mode == FastSync {
|
||||||
fetchers = append(fetchers, func() error { return d.processFastSyncContent(latest) })
|
fetchers = append(fetchers, func() error { return d.processFastSyncContent(latest) })
|
||||||
} else {
|
} else if d.mode == FullSync {
|
||||||
fetchers = append(fetchers, d.processFullSyncContent)
|
fetchers = append(fetchers, d.processFullSyncContent)
|
||||||
}
|
}
|
||||||
err = d.spawnSync(fetchers)
|
err = d.spawnSync(fetchers)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue