mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case ev := <-st.syncCh:
|
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)
|
h.blockRangeWhileSnapSyncing(st)
|
||||||
}
|
}
|
||||||
case <-st.headCh:
|
case <-st.headCh:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue