Trait sc_client_api::client::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§