Trait sc_consensus_aura::AuraApi[][src]

pub trait AuraApi<Block, AuthorityId>: Core<Block> where
    Block: Block,
    AuthorityId: Codec, 
{ fn slot_duration(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<SlotDuration, ApiError> { ... }
fn slot_duration_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<SlotDuration, ApiError> { ... }
fn authorities(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<AuthorityId, Global>, ApiError> { ... }
fn authorities_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<AuthorityId, Global>, ApiError> { ... } }
Expand description

API necessary for block authorship with aura.

Provided methods

Returns the slot duration for Aura.

Currently, only the value provided by this type at genesis will be used.

Returns the slot duration for Aura.

Currently, only the value provided by this type at genesis will be used.

Trait Implementations

The identifier of the runtime api.

The version of the runtime api.

Implementors