From 0f09a953e427ae2f6f676fe5886e694648bd862f Mon Sep 17 00:00:00 2001 From: Andreas Doerr Date: Mon, 15 Feb 2021 15:03:48 +0100 Subject: [PATCH] Add ValidatorSetId to BEEFY digest (#85) * add ValidatorSetId to BEEFY digest * apply review changes --- primitives/beefy/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/primitives/beefy/src/lib.rs b/primitives/beefy/src/lib.rs index 0ddfd0fa46f41..1b3395c46a47b 100644 --- a/primitives/beefy/src/lib.rs +++ b/primitives/beefy/src/lib.rs @@ -80,7 +80,12 @@ pub type MmrRootHash = H256; pub enum ConsensusLog { /// The authorities have changed. #[codec(index = 1)] - AuthoritiesChange(Vec), + AuthoritiesChange { + /// Set of new validators to be used + new_validator_set: Vec, + /// Id for this new set of validators + new_validator_set_id: ValidatorSetId, + }, /// Disable the authority with given index. #[codec(index = 2)] OnDisabled(AuthorityIndex),