pub fn fetch_authorities_with_compatibility_mode<A, B, C>(
client: &C,
parent_hash: B::Hash,
context_block_number: NumberFor<B>,
compatibility_mode: &CompatibilityMode<NumberFor<B>>
) -> Result<Vec<A>, ConsensusError>where
A: Codec + Debug,
B: BlockT,
C: ProvideRuntimeApi<B>,
C::Api: AuraApi<B, A>,
Expand description
Fetch the current set of authorities from the runtime at a specific block.
The compatibility mode and context block number informs this function whether to initialize the hypothetical block created by the runtime API as backwards compatibility for older chains.