referrerpolicy=no-referrer-when-downgrade
relay_substrate_client

Trait BlockWithJustification

Source
pub trait BlockWithJustification<Header> {
    // Required methods
    fn header(&self) -> Header;
    fn extrinsics(&self) -> Vec<Vec<u8>>;
    fn justification(
        &self,
        engine_id: ConsensusEngineId,
    ) -> Option<&EncodedJustification>;
}
Expand description

Block with justification.

Required Methods§

Source

fn header(&self) -> Header

Return block header.

Source

fn extrinsics(&self) -> Vec<Vec<u8>>

Return encoded block extrinsics.

Source

fn justification( &self, engine_id: ConsensusEngineId, ) -> Option<&EncodedJustification>

Return block justification, if known.

Implementations on Foreign Types§

Source§

impl<Block: BlockT> BlockWithJustification<<Block as Block>::Header> for SignedBlock<Block>

Source§

fn header(&self) -> Block::Header

Source§

fn extrinsics(&self) -> Vec<Vec<u8>>

Source§

fn justification( &self, engine_id: ConsensusEngineId, ) -> Option<&EncodedJustification>

Implementors§