Trait tetcore_test_client::client_ext::ClientExt[][src]

pub trait ClientExt<Block: BlockT>: Sized {
    fn finalize_block(
        &self,
        id: BlockId<Block>,
        justification: Option<Justification>
    ) -> Result<()>;
fn genesis_hash(&self) -> <Block as BlockT>::Hash; }

Extension trait for a test client.

Required methods

fn finalize_block(
    &self,
    id: BlockId<Block>,
    justification: Option<Justification>
) -> Result<()>
[src]

Finalize a block.

fn genesis_hash(&self) -> <Block as BlockT>::Hash[src]

Returns hash of the genesis block.

Loading content...

Implementors

impl<B, E, RA, Block> ClientExt<Block> for Client<B, E, Block, RA> where
    B: Backend<Block>,
    E: CallExecutor<Block> + 'static,
    Self: BlockImport<Block, Error = ConsensusError>,
    Block: BlockT
[src]

Loading content...