mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove executed_block from EthBuiltPayload (#14017)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user