Trait sp_beefy::BeefyApi

source ·
pub trait BeefyApi<Block: BlockT>: Core<Block> {
    // Provided methods
    fn validator_set(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError> { ... }
    fn validator_set_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError> { ... }
}
Expand description

API necessary for BEEFY voters.

Provided Methods§

source

fn validator_set( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError>

Return the current active BEEFY validator set

source

fn validator_set_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError>

Return the current active BEEFY validator set

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§