referrerpolicy=no-referrer-when-downgrade

Function cumulus_client_consensus_aura::slot_duration

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

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