Zilliqa / zq2

Zilliqa 2.0 code base
Apache License 2.0
10 stars 0 forks source link

Support pruning #1119

Open theo-zil opened 4 months ago

theo-zil commented 4 months ago

Nodes can currently run with a partial history (by loading from a checkpoint), but it's not a fully fledged feature.

DrZoltanFazekas commented 2 days 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.

DrZoltanFazekas commented 2 days ago

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