eth: use syncmode from event

This commit is contained in:
Felix Lange 2026-04-29 16:11:05 +02:00
parent 07e0168087
commit cad11f6a46

View file

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