fix(pxe): backport anchor header threading from #22679 to v4-next#22705
Merged
nchamo merged 1 commit intoApr 24, 2026
Merged
Conversation
3 tasks
mverzilli
approved these changes
Apr 24, 2026
e38e1ba to
5f0eb00
Compare
AztecBot
added a commit
that referenced
this pull request
Apr 27, 2026
BEGIN_COMMIT_OVERRIDE feat(aztec)!: add counter template for aztec init (#22751) cherry-pick: fix(pxe): restrict setSenderForTags override to current call (F-564) (#22672) (with conflicts) fix: backport restrict setSenderForTags override to current call (#22672) (#22767) fix(pxe): backport anchor header threading from #22679 to v4-next (#22705) END_COMMIT_OVERRIDE
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.
Backports the PXE-only portion of #22679 to
v4-next.The full fix in #22679 spans barretenberg world-state, the aztec-node and PXE; only the PXE refactor is portable to
v4-nextwithout dragging the C++ / world-state changes.What this changes
In
yarn-project/pxe/src/pxe.ts, capture the anchor header once perproveTx/simulateTx/profileTx(right afterblockStateSynchronizer.sync()) and thread it through to both#executePrivateand#prove, instead of re-readinganchorBlockStoreindependently inside each call.This is a defensive refactor — the anchor cannot drift today because both callees live inside the same job-queue slot — but it makes the invariant explicit and type-checked going forward.
What this does not include from #22679
WorldStateRevision::LATESTsentinel andis_historical()migration (barretenberg/cpp/src/barretenberg/world_state/*,avm_fuzzer/.../dbs.cpp)yarn-project/stdlib/src/world-state/world_state_revision.tsandyarn-project/world-state/src/native/native_world_state.tsAztecNodeService.getWorldStateinitial-header path change inyarn-project/aztec-node/src/aztec-node/server.ts(+ test)These are intentionally omitted per the request to backport only the PXE changes.
Notes
pxe.tsapplied cleanly at the exact line numbers — no conflict resolution needed.BlockHeaderwas already imported inpxe.tsonv4-next.#) methods are withinpxe.tsand are updated consistently.Original PR: #22679
ClaudeBox log: https://claudebox.work/s/6ab5b666456f5be7?run=1