Shrink persisted fork choice data (#7805)

Closes:

- https://github.com/sigp/lighthouse/issues/7760


  - [x] Remove `balances_cache` from `PersistedForkChoiceStore` (~65 MB saving on mainnet)
- [x] Remove `justified_balances` from `PersistedForkChoiceStore` (~16 MB saving on mainnet)
- [x] Remove `balances` from `ProtoArray`/`SszContainer`.
- [x] Implement zstd compression for votes
- [x] Fix bug in justified state usage
- [x] Bump schema version to V28 and implement migration.
This commit is contained in:
Michael Sproul
2025-08-18 16:03:28 +10:00
committed by GitHub
parent 08234b2823
commit 836c39efaa
26 changed files with 610 additions and 127 deletions

2
Cargo.lock generated
View File

@@ -922,6 +922,7 @@ dependencies = [
"tree_hash",
"tree_hash_derive",
"types",
"zstd 0.13.3",
]
[[package]]
@@ -3567,6 +3568,7 @@ dependencies = [
"proto_array",
"state_processing",
"store",
"superstruct",
"tokio",
"tracing",
"types",