Trait phron_finality::session_map::AuthorityProvider
source · 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§
returns authority data for block
returns next session authority data where current session is for block
returns list of Aura authorities for a given block number
returns list of next session Aura authorities for a given block number