referrerpolicy=no-referrer-when-downgrade
cumulus_client_network

Type Alias BlockAnnounceValidator

Source
pub type BlockAnnounceValidator<Block, RCInterface> = RequireSecondedInBlockAnnounce<Block, RCInterface>;
👎Deprecated: This has been renamed to RequireSecondedInBlockAnnounce
Expand description

A type alias for the RequireSecondedInBlockAnnounce validator.

Aliased Type§

struct BlockAnnounceValidator<Block, RCInterface> { /* private fields */ }

Implementations

Source§

impl<Block, RCInterface> RequireSecondedInBlockAnnounce<Block, RCInterface>
where RCInterface: Clone,

Source

pub fn new(relay_chain_interface: RCInterface, para_id: ParaId) -> Self

Trait Implementations

Source§

impl<Block: BlockT, RCInterface> BlockAnnounceValidator<Block> for RequireSecondedInBlockAnnounce<Block, RCInterface>
where RCInterface: RelayChainInterface + Clone + 'static,

Source§

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

Validate the announced header and its associated data. Read more
Source§

impl<Block: Clone, RCInterface: Clone> Clone for RequireSecondedInBlockAnnounce<Block, RCInterface>

Source§

fn clone(&self) -> RequireSecondedInBlockAnnounce<Block, RCInterface>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more