referrerpolicy=no-referrer-when-downgrade

Trait substrate_test_client::client_ext::ClientExt

source ·
pub trait ClientExt<Block: BlockT>: Sized {
    // Required methods
    fn finalize_block(
        &self,
        hash: Block::Hash,
        justification: Option<Justification>,
    ) -> Result<()>;
    fn genesis_hash(&self) -> <Block as BlockT>::Hash;
}
Expand description

Extension trait for a test client.

Required Methods§

source

fn finalize_block( &self, hash: Block::Hash, justification: Option<Justification>, ) -> Result<()>

Finalize a block.

source

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

Returns hash of the genesis block.

Object Safety§

This trait is not object safe.

Implementors§

source§

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