From 9609199d7314546a23938d51b3da4f3b571ee356 Mon Sep 17 00:00:00 2001 From: Andreas Doerr Date: Tue, 9 Mar 2021 13:12:57 +0100 Subject: [PATCH] Rework BeefyAPI (#110) --- primitives/beefy/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/primitives/beefy/src/lib.rs b/primitives/beefy/src/lib.rs index fcc21590ff5ce..cbd227da62875 100644 --- a/primitives/beefy/src/lib.rs +++ b/primitives/beefy/src/lib.rs @@ -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 { /// Public keys of the validator set elements pub validators: Vec, @@ -101,7 +101,7 @@ pub enum ConsensusLog { sp_api::decl_runtime_apis! { /// API necessary for BEEFY voters. pub trait BeefyApi { - /// Return the current set of authorities. - fn authorities() -> Vec; + /// Return the current active BEEFY validator set + fn validator_set() -> ValidatorSet; } }