-
Notifications
You must be signed in to change notification settings - Fork 742
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
Builder updates for Blobs (EIP-4844) #3808
Conversation
# Conflicts: # beacon_node/http_api/src/lib.rs
dbde110
to
9f64803
Compare
@@ -135,10 +134,10 @@ impl BuilderHttpClient { | |||
} | |||
|
|||
/// `POST /eth/v1/builder/blinded_blocks` | |||
pub async fn post_builder_blinded_blocks<E: EthSpec>( | |||
pub async fn post_builder_blinded_blocks<E: EthSpec, Payload: DeserializeOwned>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to create a trait
for ExecutionPayload
and ExecutionPayloadAndSidecar
to restrict the bound, but having some issues with getting this to compile
pub trait BuilderExecutionPayloadResponse: DeserializeOwned {}
impl<T: EthSpec> BuilderExecutionPayloadResponse for ExecutionPayloadAndBlobsSidecar<T> {}
impl<T: EthSpec> BuilderExecutionPayloadResponse for ExecutionPayload<T> {}
@realbigsean I have implemented the most of the changes we discussed earlier. I'm now trying to work on the tests, but would be helpful if you could review the changes I have so far when you have some time. |
# Conflicts: # beacon_node/execution_layer/src/lib.rs # beacon_node/http_api/src/publish_blocks.rs # lcli/src/new_testnet.rs
# Conflicts: # beacon_node/execution_layer/src/lib.rs # beacon_node/execution_layer/src/test_utils/mock_builder.rs # beacon_node/http_api/src/publish_blocks.rs # common/eth2_network_config/src/lib.rs # consensus/types/src/execution_payload.rs
86e6906
to
55753f8
Compare
This one is getting quite outdated, new draft PR created here: |
Issue Addressed
#3689
Builder spec: ethereum/builder-specs#61
4844 Builder flow: https://hackmd.io/@jimmygchen/B1dLR74Io
Proposed Changes
Builder updates for blobs. Implemented based on builder spec PR here.
BuilderBid
variants forEip4844
get_payload
response containingkzg_blob_commitments
(Eip4844
variant ofBuilderBid
)propose_blinded_beacon_block
response containing blobs sidecarBuilderBid
deserialization issues. See tests.clone()
&unwrap
were added to make things compile.