pub trait BlockBodyIndicesProvider: Send + Sync {
// Required method
fn block_body_indices(
&self,
num: u64,
) -> ProviderResult<Option<StoredBlockBodyIndices>>;
}
Expand description
Client trait for fetching block body indices related data.
Required Methods§
Sourcefn block_body_indices(
&self,
num: u64,
) -> ProviderResult<Option<StoredBlockBodyIndices>>
fn block_body_indices( &self, num: u64, ) -> ProviderResult<Option<StoredBlockBodyIndices>>
Returns the block body indices with matching number from database.
Returns None
if block is not found.