pub trait AuthorityDiscoveryApi<Block>: Core<Block>where
    Block: Block,{
    // Provided method
    fn authorities(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<Vec<Public, Global>, 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__: <Block as Block>::Hash ) -> Result<Vec<Public, Global>, ApiError>

Retrieve authority identifiers of the current and next authority set.

Trait Implementations§

source§

impl<Block> RuntimeApiInfo for dyn AuthorityDiscoveryApi<Block> + 'staticwhere Block: Block,

source§

const ID: [u8; 8] = [104u8, 122u8, 212u8, 74u8, 211u8, 127u8, 3u8, 194u8]

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementations on Foreign Types§

source§

impl<__SrApiBlock__, RuntimeApiImplCall> AuthorityDiscoveryApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where __SrApiBlock__: Block + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static, <RuntimeApiImplCall as CallApiAt<__SrApiBlock__>>::StateBackend: Backend<<<__SrApiBlock__ as Block>::Header as Header>::Hashing>, &'static RuntimeApiImplCall: Send, Vec<Public, Global>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

source§

impl<__SrApiBlock__, RuntimeApiImplCall> AuthorityDiscoveryApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where __SrApiBlock__: Block + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static, <RuntimeApiImplCall as CallApiAt<__SrApiBlock__>>::StateBackend: Backend<<<__SrApiBlock__ as Block>::Header as Header>::Hashing>, &'static RuntimeApiImplCall: Send, Vec<Public, Global>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

Implementors§