Trait substrate_test_runtime_client::ClientExt [−][src]
pub trait ClientExt<Block> where
Block: Block, { fn finalize_block(
&self,
id: BlockId<Block>,
justification: Option<([u8; 4], Vec<u8, Global>)>
) -> Result<(), Error>; fn genesis_hash(&self) -> <Block as Block>::Hash; }
Expand description
Extension trait for a test client.
Required methods
Finalize a block.
fn genesis_hash(&self) -> <Block as Block>::Hash
fn genesis_hash(&self) -> <Block as Block>::Hash
Returns hash of the genesis block.
Implementors
impl<B, E, RA, Block> ClientExt<Block> for Client<B, E, Block, RA> where
Block: Block,
E: CallExecutor<Block> + 'static,
B: Backend<Block>,
Client<B, E, Block, RA>: BlockImport<Block>,
<Client<B, E, Block, RA> as BlockImport<Block>>::Error == Error,