Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix builder API headers #7009

Open
wants to merge 8 commits into
base: release-v7.0.0
Choose a base branch
from
Open

Fix builder API headers #7009

wants to merge 8 commits into from

Conversation

pawanjay176
Copy link
Member

Issue Addressed

Resolves #7000

Proposed Changes

Set the accept header on builder to the correct value when requesting ssz.

This PR also adds a flag to disable ssz over the builder api altogether. In the case that builders/relays have an ssz bug, we can react quickly by asking clients to restart their nodes with the --disable-ssz-builder flag to force json. I'm not fully convinced if this is useful so open to removing it or opening another PR for it.

Testing this currently.

@pawanjay176 pawanjay176 added do-not-merge builder API electra Required for the Electra/Prague fork labels Feb 19, 2025
@michaelsproul
Copy link
Member

let's target this at the release-v7.0.0-beta.0 branch, which we'll use for future releases too (I should rename the branch most likely)

@michaelsproul michaelsproul added the v7.0.0 New release c. Q1 2025 label Feb 19, 2025
@pawanjay176 pawanjay176 force-pushed the fix-builder-api branch 2 times, most recently from 1e2593b to d131e1d Compare February 19, 2025 03:07
@pawanjay176 pawanjay176 added ready-for-review The code is ready for review and removed do-not-merge labels Feb 20, 2025
@pawanjay176
Copy link
Member Author

Tested this with lighthouse and other CL clients with the mock builder and ssz support works as expected.
the --builder-disable-ssz flag also leads to all requests made with json.

@michaelsproul michaelsproul changed the base branch from unstable to release-v7.0.0-beta.0 February 20, 2025 05:29
@michaelsproul michaelsproul requested a review from jxs as a code owner February 20, 2025 05:29
@michaelsproul michaelsproul changed the title Fix builder api headers Fix builder API headers Feb 20, 2025
@michaelsproul michaelsproul changed the base branch from release-v7.0.0-beta.0 to release-v7.0.0 February 20, 2025 05:48
@michaelsproul
Copy link
Member

Nice, ty. Rebased on a new branch called release-v7.0.0 which descends from v7.0.0-beta.0 (not unstable)

/// Indicates that the `get_header`` response had content-type ssz
/// so we can set content-type header to ssz to make the `submit_blinded_blocks`
/// request.
ssz_used: Arc<AtomicBool>,
Copy link
Member

Choose a reason for hiding this comment

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

This might be a better name?

Suggested change
ssz_used: Arc<AtomicBool>,
ssz_available: Arc<AtomicBool>,

Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Nice, substance looks good, just a few formatting nits

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder API electra Required for the Electra/Prague fork v7.0.0 New release c. Q1 2025 waiting-on-author The reviewer has suggested changes and awaits thier implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants