diff --git a/crates/eips/src/eip7742.rs b/crates/eips/src/eip7742.rs index 5ea6b1405e1..269515c6a77 100644 --- a/crates/eips/src/eip7742.rs +++ b/crates/eips/src/eip7742.rs @@ -20,7 +20,6 @@ pub const BLOB_BASE_FEE_UPDATE_FRACTION_NORMALIZED: u128 = pub const fn calc_excess_blob_gas_at_transition( parent_excess_blob_gas: u64, parent_blob_gas_used: u64, - parent_target_blobs_per_block: u64, ) -> u64 { let normalized_parent_excess_blob_gas = parent_excess_blob_gas * EXCESS_BLOB_GAS_NORMALIZATION_TARGET @@ -29,7 +28,7 @@ pub const fn calc_excess_blob_gas_at_transition( calc_excess_blob_gas( normalized_parent_excess_blob_gas, parent_blob_gas_used, - parent_target_blobs_per_block, + eip4844::TARGET_BLOBS_PER_BLOCK, ) } diff --git a/crates/rpc-types-beacon/Cargo.toml b/crates/rpc-types-beacon/Cargo.toml index e4219e81dda..e89e2668e09 100644 --- a/crates/rpc-types-beacon/Cargo.toml +++ b/crates/rpc-types-beacon/Cargo.toml @@ -22,6 +22,7 @@ workspace = true alloy-eips = { workspace = true, features = ["serde"] } alloy-rpc-types-engine = { workspace = true, features = ["serde"] } alloy-primitives.workspace = true +alloy-serde.workspace = true # ssz ethereum_ssz_derive = { workspace = true, optional = true } diff --git a/crates/rpc-types-beacon/src/relay.rs b/crates/rpc-types-beacon/src/relay.rs index 7275c83f32e..2940256c47e 100644 --- a/crates/rpc-types-beacon/src/relay.rs +++ b/crates/rpc-types-beacon/src/relay.rs @@ -159,6 +159,9 @@ pub struct SignedBidSubmissionV4 { pub blobs_bundle: BlobsBundleV1, /// The Pectra execution requests for this bid. pub execution_requests: Vec, + /// The EIP-7742 blobs per block for this bid. + #[serde(with = "alloy_serde::quantity")] + pub target_blobs_per_block: u64, /// The signature associated with the submission. pub signature: BlsSignature, }