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

Commit

Permalink
Add ValidatorSetId to BEEFY digest (#85)
Browse files Browse the repository at this point in the history
* add ValidatorSetId to BEEFY digest

* apply review changes
  • Loading branch information
adoerr authored Feb 15, 2021
1 parent 2d531f8 commit 0f09a95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion primitives/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@ pub type MmrRootHash = H256;
pub enum ConsensusLog<AuthorityId: Codec> {
/// The authorities have changed.
#[codec(index = 1)]
AuthoritiesChange(Vec<AuthorityId>),
AuthoritiesChange {
/// Set of new validators to be used
new_validator_set: Vec<AuthorityId>,
/// Id for this new set of validators
new_validator_set_id: ValidatorSetId,
},
/// Disable the authority with given index.
#[codec(index = 2)]
OnDisabled(AuthorityIndex),
Expand Down

0 comments on commit 0f09a95

Please sign in to comment.