pub trait AuthorityDiscovery<Block: BlockT> {
    // Required method
    fn authorities<'life0, 'async_trait>(
        &'life0 self,
        at: Block::Hash
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AuthorityId>, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Wrapper for AuthorityDiscoveryApi. Can be be implemented by any struct without dependency on the runtime.

Required Methods§

source

fn authorities<'life0, 'async_trait>( &'life0 self, at: Block::Hash ) -> Pin<Box<dyn Future<Output = Result<Vec<AuthorityId>, ApiError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Retrieve authority identifiers of the current and next authority set.

Implementors§

source§

impl<Block, T> AuthorityDiscovery<Block> for Twhere T: ProvideRuntimeApi<Block> + Send + Sync, T::Api: AuthorityDiscoveryApi<Block>, Block: BlockT,