referrerpolicy=no-referrer-when-downgrade

Trait polkadot_overseer::HeadSupportsParachains

source ·
pub trait HeadSupportsParachains {
    // Required method
    fn head_supports_parachains<'life0, 'life1, 'async_trait>(
        &'life0 self,
        head: &'life1 Hash,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Whether a header supports parachain consensus or not.

Required Methods§

source

fn head_supports_parachains<'life0, 'life1, 'async_trait>( &'life0 self, head: &'life1 Hash, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Return true if the given header supports parachain consensus. Otherwise, false.

Implementations on Foreign Types§

source§

impl<Client> HeadSupportsParachains for Arc<Client>

source§

fn head_supports_parachains<'life0, 'life1, 'async_trait>( &'life0 self, head: &'life1 Hash, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§