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>
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.