Trait beefy_primitives::BeefyApi
source · pub trait BeefyApi<Block: BlockT>: Core<Block> {
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§
sourcefn validator_set(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError>
fn validator_set(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError>
Return the current active BEEFY validator set
sourcefn validator_set_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<Option<ValidatorSet<AuthorityId>>, ApiError>
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