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§
Retrieve authority identifiers of the current and next authority set.