Trait sp_consensus_aura::AuraApi[][src]

pub trait AuraApi<Block: BlockT, AuthorityId: Codec>: Core<Block> {
    fn slot_duration(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<u64, Self::Error> { ... }
fn slot_duration_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<u64, Self::Error> { ... }
fn authorities(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<AuthorityId>, Self::Error> { ... }
fn authorities_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<AuthorityId>, Self::Error> { ... } }

API necessary for block authorship with aura.

Provided methods

fn slot_duration(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
[src]

Return the slot duration in seconds for Aura. Currently, only the value provided by this type at genesis will be used.

Dynamic slot duration may be supported in the future.

fn slot_duration_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<u64, Self::Error>
[src]

Return the slot duration in seconds for Aura. Currently, only the value provided by this type at genesis will be used.

Dynamic slot duration may be supported in the future.

fn authorities(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<Vec<AuthorityId>, Self::Error>
[src]

fn authorities_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<Vec<AuthorityId>, Self::Error>
[src]

Loading content...

Trait Implementations

impl<Block: BlockT, AuthorityId: Codec, __Sr_Api_Error__> RuntimeApiInfo for dyn AuraApi<Block, AuthorityId, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...