Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Rework BeefyAPI (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoerr authored Mar 9, 2021
1 parent 97468fe commit 9609199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions primitives/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub const BEEFY_ENGINE_ID: sp_runtime::ConsensusEngineId = *b"BEEF";
pub type ValidatorSetId = u64;

/// A set of BEEFY authorities, a.k.a. validators.
#[derive(Decode, Encode, Debug)]
#[derive(Decode, Encode, Debug, PartialEq)]
pub struct ValidatorSet<AuthorityId> {
/// Public keys of the validator set elements
pub validators: Vec<AuthorityId>,
Expand Down Expand Up @@ -101,7 +101,7 @@ pub enum ConsensusLog<AuthorityId: Codec> {
sp_api::decl_runtime_apis! {
/// API necessary for BEEFY voters.
pub trait BeefyApi<AuthorityId: Codec> {
/// Return the current set of authorities.
fn authorities() -> Vec<AuthorityId>;
/// Return the current active BEEFY validator set
fn validator_set() -> ValidatorSet<AuthorityId>;
}
}

0 comments on commit 9609199

Please sign in to comment.