From d951182737705ce6026e0d2baecb4d4127ffd4a0 Mon Sep 17 00:00:00 2001 From: Pratik Patil Date: Wed, 22 May 2024 10:21:31 +0530 Subject: [PATCH] not going into snap sync --- eth/handler.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/handler.go b/eth/handler.go index bbc3cf18a4..4f4e3bd58f 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -175,7 +175,9 @@ func newHandler(config *handlerConfig) (*handler, error) { fullBlock, snapBlock := h.chain.CurrentBlock(), h.chain.CurrentSnapBlock() if fullBlock.Number.Uint64() == 0 && snapBlock.Number.Uint64() > 0 { - h.snapSync.Store(true) + // TODO - uncomment when we (Polygon-PoS, bor) have snap sync/pbss + // For more info - https://github.com/ethereum/go-ethereum/pull/28171 + // h.snapSync.Store(true) log.Warn("Switch sync mode from full sync to snap sync", "reason", "snap sync incomplete") } else if !h.chain.HasState(fullBlock.Root) { // TODO - uncomment when we (Polygon-PoS, bor) have snap sync/pbss