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

Problem: memiavl don't support exporting a subtree for execution #1756

Open
yihuang opened this issue Feb 25, 2025 · 0 comments
Open

Problem: memiavl don't support exporting a subtree for execution #1756

yihuang opened this issue Feb 25, 2025 · 0 comments

Comments

@yihuang
Copy link
Collaborator

yihuang commented Feb 25, 2025

Context

To re-execute a part of stf in zk-prover, we can't load the whole tree in memory, we'll need to find the minimal sub-tree that's enough for the stf execution.

Solution

for example to prove the execution of a range of blocks [a, b]:

  1. load memiavl tree at version a-1.
  2. replay the range of blocks [a, b], and mark the touched nodes (both read and write) whose version < a.
  3. export those marked nodes.
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