reth_provider

Trait TryIntoHistoricalStateProvider

pub trait TryIntoHistoricalStateProvider {
    // Required method
    fn try_into_history_at_block(
        self,
        block_number: u64,
    ) -> Result<Box<dyn StateProvider>, ProviderError>;
}
Expand description

Trait implemented for database providers that can be converted into a historical state provider.

Required Methods§

fn try_into_history_at_block( self, block_number: u64, ) -> Result<Box<dyn StateProvider>, ProviderError>

Returns a historical StateProvider indexed by the given historic block number.

Implementors§

Source§

impl<TX: DbTx + 'static, N: NodeTypes> TryIntoHistoricalStateProvider for DatabaseProvider<TX, N>