[][src]Trait sc_client::ProvideUncles

pub trait ProvideUncles<Block> where
    Block: Block
{ fn uncles(
        &self,
        target_hash: <Block as Block>::Hash,
        max_generation: <<Block as Block>::Header as Header>::Number
    ) -> Result<Vec<<Block as Block>::Header>, Error>; }

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

Required methods

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

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

Loading content...

Implementors

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

Loading content...