pub trait AuthorityDiscovery<Block: BlockT> {
// Required methods
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;
fn best_hash<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Block::Hash, Error>> + 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.