Bug report: get_block_header_at off-by-one in archive membership proof#252
Closed
critesjosh wants to merge 2 commits intonextfrom
Closed
Bug report: get_block_header_at off-by-one in archive membership proof#252critesjosh wants to merge 2 commits intonextfrom
critesjosh wants to merge 2 commits intonextfrom
Conversation
… bug Demonstrates that the Noir oracle's archive membership proof always fails because the node's #getWorldState resolves a BlockHash to getSnapshot(N) (post-block archive) instead of getSnapshot(N-1) (pre-block / last_archive). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_block_header_at()always fails in private functions on4.0.0-devnet.2-patch.1with"Proving membership of a block in archive failed"aztec-node/server.ts#getWorldState()— resolvesBlockHashtogetSnapshot(N)(post-block archive) instead ofgetSnapshot(N-1)(pre-block /last_archive)scripts/repro_block_header.ts) and detailed report (scripts/REPORT.md)Test plan
yarn repro:block-headeragainst local network to reproduceAZTEC_ENV=devnet yarn repro:block-headeragainst devnet to reproduceaztec-packagesresolves the issue🤖 Generated with Claude Code