Update SetDecided to include the validators

Necessary for light-client protocols to follow along with consensus. Arguably,
anyone handling GRANDPA's consensus could peek at this through the consensus
commit anyways, but we shouldn't so defer that.
This commit is contained in:
Luke Parker
2025-11-15 14:59:33 -05:00
parent 46b1f1b7ec
commit 609cf06393
4 changed files with 27 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
use alloc::vec::Vec;
use borsh::{BorshSerialize, BorshDeserialize};
use serai_primitives::{
@@ -96,6 +98,8 @@ pub enum Event {
SetDecided {
/// The set decided.
set: ValidatorSet,
/// The validators decided to be included in the set.
validators: Vec<(SeraiAddress, KeyShares)>,
},
/// A validator set has set their keys.
SetKeys {