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§
Sourcefn try_into_history_at_block(
self,
block_number: BlockNumber,
) -> ProviderResult<StateProviderBox>
fn try_into_history_at_block( self, block_number: BlockNumber, ) -> ProviderResult<StateProviderBox>
Returns a historical StateProvider
indexed by the given historic block number.