From cad11f6a4651638b386e4437e23cd58c16832947 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 29 Apr 2026 16:11:05 +0200 Subject: [PATCH] eth: use syncmode from event --- eth/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/handler.go b/eth/handler.go index 830dc83122..76df635fb0 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -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: