referrerpolicy=no-referrer-when-downgrade
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§