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

move proof building before root computation #527

Open
wants to merge 1 commit into
base: kaustinen-with-shapella
Choose a base branch
from

Conversation

gballet
Copy link
Owner

@gballet gballet commented Nov 7, 2024

This is a rewrite of #517. It generates the proof against the prestate, before the post state is inserted. This avoids reloading the prestate from disk.

TLDR: Break the proving into two parts:

  1. the Proof part where the proof is build, which is called before IntermediateRoot
  2. the "post state" part, which is created after the intermediate root has been computed.

In the case of the execusion spec test, the pre tree is saved before execution, so there is no need to move things around, just use the new API.

Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
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