Trait substrate_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; }
Expand description
Extension trait for a test client.
Required methods
fn finalize_block(
&self,
id: BlockId<Block>,
justification: Option<Justification>
) -> Result<()>
fn finalize_block(
&self,
id: BlockId<Block>,
justification: Option<Justification>
) -> Result<()>
Finalize a block.
fn genesis_hash(&self) -> <Block as BlockT>::Hash
fn genesis_hash(&self) -> <Block as BlockT>::Hash
Returns hash of the genesis block.
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,