referrerpolicy=no-referrer-when-downgrade
sc_client_api::client

Trait ProvideUncles

Source
pub trait ProvideUncles<Block: BlockT> {
    // Required method
    fn uncles(
        &self,
        target_hash: Block::Hash,
        max_generation: NumberFor<Block>,
    ) -> Result<Vec<Block::Header>>;
}
Expand description

Provide a list of potential uncle headers for a given block.

Required Methods§

Source

fn uncles( &self, target_hash: Block::Hash, max_generation: NumberFor<Block>, ) -> Result<Vec<Block::Header>>

Gets the uncles of the block with target_hash going back max_generation ancestors.

Implementors§

impl<B, E, Block, RA> ProvideUncles<Block> for Client<B, E, Block, RA>
where B: Backend<Block>, E: CallExecutor<Block>, Block: BlockT,