Skip to content

Commit

Permalink
feat(rpc-types-beacon): BuilderBlockValidationRequestV3 (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanschneider authored Sep 19, 2024
1 parent 9171546 commit 57dd4c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/rpc-types-beacon/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,20 @@ pub struct BuilderBlockValidationRequestV2 {
pub withdrawals_root: B256,
}

/// A Request to validate a [SubmitBlockRequest] <https://github.com/flashbots/builder/blob/7577ac81da21e760ec6693637ce2a81fe58ac9f8/eth/block-validation/api.go#L198-L202>
#[serde_as]
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct BuilderBlockValidationRequestV3 {
/// The [SubmitBlockRequest] data to be validated.
#[serde(flatten)]
pub request: SubmitBlockRequest,
/// The registered gas limit for the validation request.
#[serde_as(as = "DisplayFromStr")]
pub registered_gas_limit: u64,
/// The parent beacon block root for the validation request.
pub parent_beacon_block_root: B256,
}

/// Query for the GET `/relay/v1/data/bidtraces/proposer_payload_delivered`
///
/// Provides [BidTrace]s for payloads that were delivered to proposers.
Expand Down

0 comments on commit 57dd4c5

Please sign in to comment.