Trait reth_provider::ExecutionDataProvider

pub trait ExecutionDataProvider: Send + Sync {
    // Required methods
    fn execution_outcome(&self) -> &ExecutionOutcome;
    fn block_hash(&self, block_number: u64) -> Option<FixedBytes<32>>;
}
Expand description

Provides data required for post-block execution.

This trait offers methods to access essential post-execution data, including the state changes in accounts and storage, as well as block hashes for both the pending and canonical chains.

The trait includes:

  • ExecutionOutcome - Captures all account and storage changes in the pending chain.
  • Block hashes - Provides access to the block hashes of both the pending chain and canonical blocks.

Required Methods§

fn execution_outcome(&self) -> &ExecutionOutcome

Return the execution outcome.

fn block_hash(&self, block_number: u64) -> Option<FixedBytes<32>>

Return block hash by block number of pending or canonical chain.

Implementations on Foreign Types§

§

impl<'a, T> ExecutionDataProvider for &'a T
where T: 'a + ExecutionDataProvider + ?Sized, &'a T: Send + Sync,

§

fn execution_outcome(&self) -> &ExecutionOutcome

§

fn block_hash(&self, block_number: u64) -> Option<FixedBytes<32>>

§

impl<T> ExecutionDataProvider for Box<T>

§

fn execution_outcome(&self) -> &ExecutionOutcome

§

fn block_hash(&self, block_number: u64) -> Option<FixedBytes<32>>

Implementors§