referrerpolicy=no-referrer-when-downgrade

Function cumulus_client_consensus_aura::slot_duration_at

source ·
pub fn slot_duration_at<A, B, C>(
    client: &C,
    block_hash: <B as Block>::Hash,
) -> Result<SlotDuration, Error>
where A: Codec, B: Block, C: ProvideRuntimeApi<B>, <C as ProvideRuntimeApi<B>>::Api: AuraApi<B, A>,
Expand description

Get the slot duration for Aura by reading from a runtime API at a given block’s state.