referrerpolicy=no-referrer-when-downgrade
pub trait ClientExt<Block>: Sized
where Block: Block,
{ // Required methods fn finalize_block( &self, hash: <Block as Block>::Hash, justification: Option<([u8; 4], Vec<u8>)>, ) -> Result<(), Error>; fn genesis_hash(&self) -> <Block as Block>::Hash; }
Expand description

Extension trait for a test client.

Required Methods§

fn finalize_block( &self, hash: <Block as Block>::Hash, justification: Option<([u8; 4], Vec<u8>)>, ) -> Result<(), Error>

Finalize a block.

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

Returns hash of the genesis block.

Object Safety§

This trait is not object safe.

Implementors§

§

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