mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Feat: Extend BuiltPayload type (#10583)
Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user