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

Refactor snapshot to handle both verkle and mpt simultaneously #336

Open
gballet opened this issue Jan 19, 2024 · 0 comments
Open

Refactor snapshot to handle both verkle and mpt simultaneously #336

gballet opened this issue Jan 19, 2024 · 0 comments

Comments

@gballet
Copy link
Owner

gballet commented Jan 19, 2024

Shadow forks larger than 128 blocks will fail, because the snapshot and base tree are lost after 128 blocks. This means that the base MPT can not be read, and that the snapshot - necessary for the transition - is also unavailable.

There are several ways to proceed:

  1. Iterate the MPT during the conversion. This is doable in PBSS, but a bit slow.
  2. Keep more layers in RAM. This is a hack that works well, but is not going to work for mainnet.
  3. Make the snapshot support pre- and post-fork values + activate the archive node during the transition, so that the MPT can be found, and the old view of the snapshot can be iterated during the conversion.

#3 is the only sustainable approach, but it requires more thinking and it probably makes sense to only use it after the rebase.

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

No branches or pull requests

1 participant