Skip to content

refactor(pxe): short-circuit block header lookup at anchor block#23128

Merged
Thunkar merged 1 commit intomerge-train/fairiesfrom
nchamo/block-header-short-circuit
May 10, 2026
Merged

refactor(pxe): short-circuit block header lookup at anchor block#23128
Thunkar merged 1 commit intomerge-train/fairiesfrom
nchamo/block-header-short-circuit

Conversation

@nchamo
Copy link
Copy Markdown
Contributor

@nchamo nchamo commented May 9, 2026

Summary

  • Skip the aztecNode.getBlock RPC in getBlockHeader when the requested block number matches the anchor — the anchor's header is already in memory.
  • Most utility executions query state at the anchor block, so this avoids a redundant round-trip on the hot path.

@nchamo nchamo self-assigned this May 9, 2026
@nchamo nchamo requested a review from Thunkar May 9, 2026 22:32
@Thunkar Thunkar enabled auto-merge (squash) May 10, 2026 09:10
@Thunkar Thunkar merged commit ac74e9c into merge-train/fairies May 10, 2026
28 checks passed
@Thunkar Thunkar deleted the nchamo/block-header-short-circuit branch May 10, 2026 09:11
AztecBot pushed a commit that referenced this pull request May 10, 2026
)

## Summary

- Skip the `aztecNode.getBlock` RPC in `getBlockHeader` when the
requested block number matches the anchor — the anchor's header is
already in memory.
- Most utility executions query state at the anchor block, so this
avoids a redundant round-trip on the hot path.

Co-authored-by: Nico Chamo <nico.chamo@gmail.com>
@AztecBot
Copy link
Copy Markdown
Collaborator

✅ Successfully backported to backport-to-v4-next-staging #23133.

AztecBot added a commit that referenced this pull request May 10, 2026
BEGIN_COMMIT_OVERRIDE
refactor(pxe): short-circuit block header lookup at anchor block
(#23128)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants