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>, 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>, ApiError>

Retrieve authority identifiers of the current and next authority set.

Trait Implementations§

source§

impl<Block> RuntimeApiInfo for dyn AuthorityDiscoveryApi<Block>
where Block: Block,

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementations on Foreign Types§

§

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>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

§

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>: UnwindSafe + RefUnwindSafe, <__SrApiBlock__ as Block>::Header: UnwindSafe + RefUnwindSafe,

Implementors§