reth::providers

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, Spec> TryIntoHistoricalStateProvider for DatabaseProvider<TX, Spec>
where TX: DbTx + 'static, Spec: Send + Sync,