Closed
Description
Rationale
Why should this feature exist?
- https://github.com/bnb-chain/bsc-snapshots/ maintenance could be easier
- bsc-snapshot user would be easier to download the snapshot, if they have the base snapshot, only download the changeset would be enough
- fast node sync: node could just apply the ChangeSet, instead download/import.
Implementation
- keep ChangeSet on block import, compact every 100K or 1M blocks
- before snapshot upload: only upload the ChangeSet
- download: provide a script to recover the state based on ChangeSet
reference
PBSS has similar implementation, refer: ancient/states
Activity