Skip to content

Conversation

@alessandromazza98
Copy link
Contributor

@alessandromazza98 alessandromazza98 commented Nov 14, 2025

Closes https://linear.app/worldcoin/issue/PROTO-3181/low-incorrect-block-index-returned-when-prestate-exists-from-p2p

Important Note

Please note that nethermind audit doesn't mention the fact that we're not updating the index in the Flashblock::reduce fn, but I think that's a bug too and I fixed it in this PR too. Review this carefully because I may be missing something.

acc.base = next.flashblock.base;
}

acc.index = next.flashblock.index;
Copy link
Contributor Author

@alessandromazza98 alessandromazza98 Nov 14, 2025

Choose a reason for hiding this comment

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

this modification here is the one to review carefully. It's not mentioned in the audit

@alessandromazza98 alessandromazza98 merged commit 0e4b30c into main Nov 14, 2025
10 of 11 checks passed
@alessandromazza98 alessandromazza98 deleted the ale/audit-block-index-in-pre-state branch November 14, 2025 16:09
Copy link
Contributor

@0xForerunner 0xForerunner left a comment

Choose a reason for hiding this comment

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

Looks good. I think maybe we should get rid of flashblocks reduce. Seems a bit unnatural.

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.

4 participants