From dceecbd541ec2ba6d819d8d3fd0427edf6c4003e Mon Sep 17 00:00:00 2001 From: jagdeep sidhu Date: Mon, 7 Oct 2024 20:44:11 -0700 Subject: [PATCH] always create downloader --- eth/handler.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eth/handler.go b/eth/handler.go index 99a78cba09..93ce541949 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -181,8 +181,9 @@ func newHandler(config *handlerConfig) (*handler, error) { return nil, errors.New("snap sync not supported with snapshots disabled") } // SYSCOIN Construct the downloader (long sync) - if h.chain.GetChainConfig().SyscoinBlock == nil { - h.downloader = downloader.New(config.Database, h.eventMux, h.chain, h.removePeer, h.enableSyncedFeatures) + h.downloader = downloader.New(config.Database, h.eventMux, h.chain, h.removePeer, h.enableSyncedFeatures) + if h.chain.GetChainConfig().SyscoinBlock != nil { + h.downloader.Terminate() } fetchTx := func(peer string, hashes []common.Hash) error {