mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-07 23:48:36 +00:00
eth: use syncmode from event
This commit is contained in:
parent
07e0168087
commit
cad11f6a46
1 changed files with 1 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ func (h *handler) blockRangeLoop(st *blockRangeState) {
|
|||
for {
|
||||
select {
|
||||
case ev := <-st.syncCh:
|
||||
if ev.Type == downloader.SyncStarted && h.downloader.ConfigSyncMode() == ethconfig.SnapSync {
|
||||
if ev.Type == downloader.SyncStarted && ev.Mode == ethconfig.SnapSync {
|
||||
h.blockRangeWhileSnapSyncing(st)
|
||||
}
|
||||
case <-st.headCh:
|
||||
|
|
|
|||
Loading…
Reference in a new issue