Feat: Extend BuiltPayload type (#10583)

Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
This commit is contained in:
malik
2024-08-31 18:27:12 +01:00
committed by GitHub
parent 3efe22eae7
commit 17f6225fa5
7 changed files with 68 additions and 14 deletions

View File

@ -2,7 +2,7 @@ use reth_chain_state::ExecutedBlock;
use reth_chainspec::ChainSpec;
use reth_primitives::{
revm_primitives::{BlockEnv, CfgEnvWithHandlerCfg},
Address, Header, SealedBlock, Withdrawals, B256, U256,
Address, Header, Receipt, SealedBlock, Withdrawals, B256, U256,
};
use reth_rpc_types::{
engine::{PayloadAttributes as EthPayloadAttributes, PayloadId},
@ -23,6 +23,9 @@ pub trait BuiltPayload: Send + Sync + std::fmt::Debug {
/// Returns the fees collected for the built block
fn fees(&self) -> U256;
/// Returns the Receipts
fn receipts(&self) -> &[Receipt];
/// Returns the entire execution data for the built block, if available.
fn executed_block(&self) -> Option<ExecutedBlock> {
None