chore: remove executed_block from EthBuiltPayload (#14017)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Dan Cline
2025-01-27 16:27:57 -05:00
committed by GitHub
parent e2c45f2b1f
commit ddc9375a60
9 changed files with 15 additions and 52 deletions

View File

@ -18,7 +18,6 @@ reth-engine-primitives.workspace = true
reth-payload-primitives.workspace = true
reth-payload-validator.workspace = true
reth-rpc-types-compat.workspace = true
reth-chain-state.workspace = true
# alloy
alloy-primitives.workspace = true

View File

@ -9,7 +9,6 @@ use alloy_rpc_types_engine::{
ExecutionPayloadV1, PayloadAttributes, PayloadId,
};
use core::convert::Infallible;
use reth_chain_state::ExecutedBlockWithTrieUpdates;
use reth_payload_primitives::{BuiltPayload, PayloadBuilderAttributes};
use reth_primitives::{EthPrimitives, SealedBlock};
use reth_rpc_types_compat::engine::payload::{
@ -27,8 +26,6 @@ pub struct EthBuiltPayload {
pub(crate) id: PayloadId,
/// The built block
pub(crate) block: Arc<SealedBlock>,
/// Block execution data for the payload, if any.
pub(crate) executed_block: Option<ExecutedBlockWithTrieUpdates>,
/// The fees of the block
pub(crate) fees: U256,
/// The blobs, proofs, and commitments in the block. If the block is pre-cancun, this will be
@ -48,10 +45,9 @@ impl EthBuiltPayload {
id: PayloadId,
block: Arc<SealedBlock>,
fees: U256,
executed_block: Option<ExecutedBlockWithTrieUpdates>,
requests: Option<Requests>,
) -> Self {
Self { id, block, executed_block, fees, sidecars: Vec::new(), requests }
Self { id, block, fees, sidecars: Vec::new(), requests }
}
/// Returns the identifier of the payload.
@ -100,10 +96,6 @@ impl BuiltPayload for EthBuiltPayload {
self.fees
}
fn executed_block(&self) -> Option<ExecutedBlockWithTrieUpdates> {
self.executed_block.clone()
}
fn requests(&self) -> Option<Requests> {
self.requests.clone()
}
@ -120,10 +112,6 @@ impl BuiltPayload for &EthBuiltPayload {
(**self).fees()
}
fn executed_block(&self) -> Option<ExecutedBlockWithTrieUpdates> {
self.executed_block.clone()
}
fn requests(&self) -> Option<Requests> {
self.requests.clone()
}