v0.12.0
This release dramatically reduces the storage requirements of pathfinder.
This has been achieved by adding support for pruning state trie data, and improving the compactness of transaction and state diff data in storage.
Storage improvements
The following numbers are for a mainnet database at block 635 054
v0.11.6 | v0.12.0 (archive) | v0.12.0 (pruned) |
---|---|---|
770 GB | 615 GB | 170 GB |
State trie pruning
Pathfinder has always stored the state trie data for every block ever. This has lead to enormous storage bloat, where the state trie data comprises roughly 80% of total storage in previous pathfinder versions. This can be reduced to just 5% by enabling state pruning.
With this release you can now configure it to store only the latest k
blocks, dramatically cutting the storage usage. As an example, storing only the latest block gives a reduction of 75% of total storage used compared to the previous pathfinder version.
Note that pruning and archive are incompatible. You will need to resync if you wish to run a pruned node - however we will provide snapshots for both variants, at least for mainnet.
The state trie is required to verify the state diffs and to provide storage proofs. You can read more about how and when to configure pruning here.
Added
- Support for pruning state trie data
Changed
- Improved compactness of transaction and state diff data in storage
Removed
- Goerli support