referrerpolicy=no-referrer-when-downgrade

Trait AuraApi

Source
pub trait AuraApi<Block: BlockT, AuthorityId: Codec>: Core<Block> {
    // Provided methods
    fn slot_duration(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<SlotDuration, ApiError> { ... }
    fn authorities(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<Vec<AuthorityId>, ApiError> { ... }
}
Expand description

API necessary for block authorship with aura.

Provided Methods§

Source

fn slot_duration( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<SlotDuration, ApiError>

Returns the slot duration for Aura.

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

Source

fn authorities( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Vec<AuthorityId>, ApiError>

Return the current set of authorities.

Trait Implementations§

Source§

impl<Block: BlockT, AuthorityId: Codec> RuntimeApiInfo for dyn AuraApi<Block, AuthorityId>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§