referrerpolicy=no-referrer-when-downgrade

Function cumulus_client_consensus_aura::collator::claim_slot

source ·
pub async fn claim_slot<B, C, P>(
    client: &C,
    parent_hash: B::Hash,
    relay_parent_header: &Header,
    slot_duration: SlotDuration,
    relay_chain_slot_duration: Duration,
    keystore: &KeystorePtr,
) -> Result<Option<SlotClaim<P::Public>>, Box<dyn Error>>
where B: BlockT, C: ProvideRuntimeApi<B> + Send + Sync + 'static, C::Api: AuraApi<B, P::Public>, P: Pair, P::Public: Codec, P::Signature: Codec,
Expand description

Attempt to claim a slot derived from the given relay-parent header’s slot.