Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merklized state pruning #665

Open
Tracked by #664
jbearer opened this issue Jul 17, 2024 · 0 comments
Open
Tracked by #664

Merklized state pruning #665

jbearer opened this issue Jul 17, 2024 · 0 comments

Comments

@jbearer
Copy link
Member

jbearer commented Jul 17, 2024

  • When pruning up to height h, we can delete any node which
    • has created < h AND
    • is not the newest node with its pos
  • In snapshot_info, where we currently check get_last_state_height() to check if the snapshot exists, we must also check pruned_height()
  • There is no fetching for merklized state, so when rebuilding an archive (Config::archive), the application (i.e. sequencer) will need to ensure the update_state_storage_loop starts from 0
  • Otherwise, the update_state_storage_loop should start from the maximum of get_last_state_height() and pruned_height() + 1 (we must start from an unpruned height so we can look up the parent state when applying the STF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants