Snap Sync #2313
-
ContextSpin-up an archive node ( ProblemWe just want to keep the last month worth of blocks. AsksDoes Celo support snap sync? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @andreclaro
This is not possible with celo or even vanilla go-ethereum and I'm not sure it's possible with any ethereum client. As far as I know all clients keep all blocks. What you may be referring to is the state for each block which if not running with
The celo-blockchain celo node implementation does not currently support snap sync. We are currently in the process of transitioning to be an L2 built on the Optimism stack, that new implementation will support snap sync but it is not ready yet. Although snap sync will not enable you to keep just the last months worth of blocks. |
Beta Was this translation helpful? Give feedback.
Hi @andreclaro
This is not possible with celo or even vanilla go-ethereum and I'm not sure it's possible with any ethereum client. As far as I know all clients keep all blocks.
What you may be referring to is the state for each block which if not running with
--gcmode archive
will expire after 128 blocks so for celo that would be about 10 minutes, or 25 minutes for ethereum because block times are longer. If running with--gcmode archive
then state never expires, unfortunately there is no extra configurability. So either you keep the last 128 sates or you keep them all.The celo-blockchain celo node imple…