Open theo-zil opened 4 months ago
As an addition to the above, it should also be possible to set the config parameter to a block height we currently don't have (e.g. a block number before the checkpoint from which we synced), to fetch the missing blocks. If the config parameter is set to 0 (genesis), we can sync all blocks older than the checkpoint from which we started syncing.
When it comes to state pruning, the work on #1503 could make implementing it easier. Think of how Geth vs newer Ethereum clients such as Erigon store the state. The latter ones use a flat key-block-value mapping. @JamesHinshelwood please correct me if I'm wrong
Nodes can currently run with a partial history (by loading from a checkpoint), but it's not a fully fledged feature.