reth_storage_api

Trait BlockExecutionForkProvider

Source
pub trait BlockExecutionForkProvider {
    // Required method
    fn canonical_fork(&self) -> BlockNumHash;
}
Expand description

Fork data needed for execution on it.

It contains a canonical fork, the block on what pending chain was forked from.

Required Methods§

Source

fn canonical_fork(&self) -> BlockNumHash

Return canonical fork, the block on what post state was forked from.

Needed to create state provider.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + BlockExecutionForkProvider + ?Sized> BlockExecutionForkProvider for &'a T

Source§

fn canonical_fork(&self) -> BlockNumHash

Source§

impl<T: BlockExecutionForkProvider + ?Sized> BlockExecutionForkProvider for Box<T>

Source§

fn canonical_fork(&self) -> BlockNumHash

Implementors§