[][src]Trait sp_authority_discovery::AuthorityDiscoveryApi

pub trait AuthorityDiscoveryApi<Block: BlockT>: Core<Block> {
    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> { ... } }

The authority discovery api.

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

Provided methods

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

Retrieve authority identifiers of the current authority set.

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

Retrieve authority identifiers of the current authority set.

Loading content...

Trait Implementations

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

Implementors

Loading content...