pub trait AuthorityDiscoveryApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn authorities(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<AuthorityId>, ApiError> { ... }
    fn authorities_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<AuthorityId>, ApiError> { ... }
}
Expand description

The authority discovery api.

This api is used by the client/authority-discovery module to retrieve identifiers of the current and next authority set.

Provided Methods§

source

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

Retrieve authority identifiers of the current and next authority set.

source

fn authorities_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AuthorityId>, ApiError>

Retrieve authority identifiers of the current and next authority set.

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn AuthorityDiscoveryApi<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§