Skip to content

feat: merge-train/fairies - #25134

Merged
AztecBot merged 3 commits into
nextfrom
merge-train/fairies
Aug 7, 2026
Merged

feat: merge-train/fairies#25134
AztecBot merged 3 commits into
nextfrom
merge-train/fairies

Conversation

@AztecBot

@AztecBot AztecBot commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
refactor(stdlib): carry the proposed tip header on chain-proposed events (#25116)
END_COMMIT_OVERRIDE

…nts (#25116)

## Why we are doing this

Follow-up to #25089 in the PXE↔node RPC-reduction line. When PXE tracks
the proposed chain tip it anchors on the tip's header, but the block
stream's `chain-proposed` event only carried the block id, so the PXE
handler had to fetch the header back from the node on every tip
movement.

## Our fix

`chain-proposed` now carries the tip's `BlockHeader` as a required
payload, so consumers anchor on the event without a fetch of their own.
The stream sources the header from whatever the pass already has: the
delivered tip block in block mode, a prefetch that runs in parallel with
the reorg walk-back in tips-only mode, or an on-demand by-hash read as a
fallback. If the header cannot be obtained the pass aborts and retries
on the next poll, so tier events never get ahead of a proposed tip the
consumer never received.

## Metrics

Measured on the `key_flows` transfers benchmark with a counting wrapper
between the benchmarking wallet and the in-process node, applied to both
base and this branch. Per-flow calls are unchanged; the saving is one
serial fetch (round trip) per tip movement.

| Flow | RPC calls | Round trips |
|---|---|---|
| `ecdsar1+transfer_0_recursions+sponsored_fpc` | 35 → 35 | 26 → 25
(−3.8%) |
| `ecdsar1+transfer_1_recursions+sponsored_fpc` | 37 → 37 | 23 → 21
(−8.7%) |
| `ecdsar1+transfer_0_recursions+private_fpc` | 56 → 56 | 34 → 33
(−2.9%) |
| `ecdsar1+transfer_1_recursions+private_fpc` | 56 → 56 | 32 → 31
(−3.1%) |
| whole suite (both wallets, incl. setup) | 460 → 459 | 333 → 320
(−3.9%) |

@ludamad ludamad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤖 Auto-approved

@AztecBot
AztecBot added this pull request to the merge queue Aug 7, 2026
@AztecBot

AztecBot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

Merged via the queue into next with commit c5b7768 Aug 7, 2026
22 checks passed
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