Skip to content

Remove validator public keys from persisted state#611

Open
ArtiomTr wants to merge 1 commit intograndinetech:developfrom
ArtiomTr:feature/persist-only-finalized-validators-to-disk
Open

Remove validator public keys from persisted state#611
ArtiomTr wants to merge 1 commit intograndinetech:developfrom
ArtiomTr:feature/persist-only-finalized-validators-to-disk

Conversation

@ArtiomTr
Copy link
Collaborator

This change optimizes disk usage, by excluding validator pubkeys from state before persisting it to disk, and restoring them by taking pubkeys from finalized validator list. Pubkeys are removed by zeroizing them, so that snappy compresses them, effectively removing them from state.

This change reduces mainnet state size by ~72% - from ~151.6 to ~41.3 MB compressed size.

@ArtiomTr ArtiomTr force-pushed the feature/persist-only-finalized-validators-to-disk branch 2 times, most recently from 084911f to e71329e Compare February 27, 2026 10:55
This change optimizes disk usage, by excluding validator pubkeys from
state before persisting it to disk, and restoring them by taking pubkeys
from finalized validator list. Pubkeys are removed by zeroizing them, so
that snappy compresses them, effectively removing them from state.

This change reduces mainnet state size by ~72% - from ~151.6 to ~41.3 MB
compressed size.
@ArtiomTr ArtiomTr force-pushed the feature/persist-only-finalized-validators-to-disk branch 2 times, most recently from c78e9bf to 755c352 Compare February 27, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant