pub trait AuthorityProvider {
    // Required methods
    fn authority_data(
        &self,
        block_number: BlockNumber
    ) -> Option<SessionAuthorityData>;
    fn next_authority_data(
        &self,
        block_number: BlockNumber
    ) -> Option<SessionAuthorityData>;
    fn aura_authorities(&self, block_number: BlockNumber) -> Option<Vec<AuraId>>;
    fn next_aura_authorities(
        &self,
        block_number: BlockNumber
    ) -> Option<Vec<AuraId>>;
}

Required Methods§

source

fn authority_data( &self, block_number: BlockNumber ) -> Option<SessionAuthorityData>

returns authority data for block

source

fn next_authority_data( &self, block_number: BlockNumber ) -> Option<SessionAuthorityData>

returns next session authority data where current session is for block

source

fn aura_authorities(&self, block_number: BlockNumber) -> Option<Vec<AuraId>>

returns list of Aura authorities for a given block number

source

fn next_aura_authorities( &self, block_number: BlockNumber ) -> Option<Vec<AuraId>>

returns list of next session Aura authorities for a given block number

Implementors§

source§

impl<C, B, BE, RA> AuthorityProvider for AuthorityProviderImpl<C, B, BE, RA>
where C: ClientForPhron<B, BE> + Send + Sync + 'static, C::Api: PhronSessionApi<B> + AuraApi<B, AuraId>, B: Block<Hash = BlockHash>, B::Header: Header<Number = BlockNumber>, BE: Backend<B> + 'static, RA: RuntimeApi,