[][src]Trait sp_consensus::block_validation::BlockAnnounceValidator

pub trait BlockAnnounceValidator<B: Block> {
    fn validate(
        &mut self,
        header: &B::Header,
        data: &[u8]
    ) -> Result<Validation, Box<dyn Error + Send>>; }

Type which checks incoming block announcements.

Required methods

fn validate(
    &mut self,
    header: &B::Header,
    data: &[u8]
) -> Result<Validation, Box<dyn Error + Send>>

Validate the announced header and its associated data.

Loading content...

Implementors

impl<B: Block> BlockAnnounceValidator<B> for DefaultBlockAnnounceValidator[src]

Loading content...