Skip to content

Commit

Permalink
not going into snap sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikspatil024 committed May 22, 2024
1 parent d95c05b commit d951182
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d951182

Please sign in to comment.