reth_provider

Trait BlockBodyIndicesProvider

pub trait BlockBodyIndicesProvider: Send + Sync {
    // Required method
    fn block_body_indices(
        &self,
        num: u64,
    ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>;
}
Expand description

Client trait for fetching block body indices related data.

Required Methods§

fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>

Returns the block body indices with matching number from database.

Returns None if block is not found.

Implementations on Foreign Types§

§

impl<'a, T> BlockBodyIndicesProvider for &'a T

§

fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>

§

impl<T> BlockBodyIndicesProvider for Arc<T>

§

fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>

Implementors§