diff --git a/eth/handler.go b/eth/handler.go index 3ac9ae7a49..832d035cf6 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -179,13 +179,8 @@ func newHandler(config *handlerConfig) (*handler, error) { log.Info("Enabled snap sync", "head", head.Number, "hash", head.Hash()) } } - // If the sync succeeds, mark the local node as synced and enable all features - // with state synchronization requirements. - success := func() { - h.enableSyncedFeatures() - } // Construct the downloader (long sync) - h.downloader = downloader.New(config.Database, h.eventMux, h.chain, nil, h.removePeer, success) + h.downloader = downloader.New(config.Database, h.eventMux, h.chain, nil, h.removePeer, h.enableSyncedFeatures) if ttd := h.chain.Config().TerminalTotalDifficulty; ttd != nil { if h.chain.Config().TerminalTotalDifficultyPassed { log.Info("Chain post-merge, sync via beacon client")