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

fix: Do not start block root rollup proof before block is built #8952

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

spalladino
Copy link
Collaborator

We were running into a race condition where, under simulated circuits, the block root rollup was being proven before the block was actually built. This triggered an error when trying to access the built block for validating the output of the root rollup circuit:

if (!header.hash().equals(provingState.block!.header.hash())) {

See this run for an example.

@spalladino spalladino marked this pull request as ready for review October 2, 2024 14:46
Copy link
Contributor

@alexghr alexghr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@spalladino spalladino enabled auto-merge (squash) October 2, 2024 14:55
@spalladino spalladino merged commit af1a6af into master Oct 2, 2024
82 of 84 checks passed
@spalladino spalladino deleted the palla/wait-for-block branch October 2, 2024 15:19
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.

2 participants