reth_storage_api

Trait TryIntoHistoricalStateProvider

Source
pub trait TryIntoHistoricalStateProvider {
    // Required method
    fn try_into_history_at_block(
        self,
        block_number: BlockNumber,
    ) -> ProviderResult<StateProviderBox>;
}
Expand description

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

Required Methods§

Source

fn try_into_history_at_block( self, block_number: BlockNumber, ) -> ProviderResult<StateProviderBox>

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

Implementors§