perf(pbs): always request SSZ from relays on get_header - #481
Open
JasonVranek wants to merge 3 commits into
Open
perf(pbs): always request SSZ from relays on get_header#481JasonVranek wants to merge 3 commits into
JasonVranek wants to merge 3 commits into
Conversation
JasonVranek
force-pushed
the
pr/ssz-submit-block
branch
from
July 24, 2026 21:58
7939e87 to
a374d82
Compare
PBS decodes and validates every relay bid and the route re-encodes the winning bid to the beacon node's Accept regardless, so the relay->PBS wire format never changes what the BN receives. Always request SSZ (JSON fallback) instead of mirroring the caller's format: SSZ is smaller on the wire and faster to decode, which matters across N relay bids on the proposal critical path. Mirrors the same change already made to submit_block. Adds a test asserting the relay receives an SSZ-first Accept regardless of the BN's preference (the mock relay now records the Accept it was sent), and updates the now-stale build_outbound_accept doc comment.
JasonVranek
force-pushed
the
pr/get-header-always-ssz
branch
from
July 27, 2026 16:12
8de071f to
ca8f3db
Compare
ManuelBilbao
approved these changes
Jul 27, 2026
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.
PBS decodes and validates every relay bid and the route re-encodes the winning bid to the beacon node's Accept regardless, so the relay->PBS wire format never changes what the BN receives. Always request SSZ (JSON fallback) instead of mirroring the caller's format: SSZ is smaller on the wire and faster to decode, which matters across N relay bids on the proposal critical path. Mirrors the same change already made to submit_block.