diff --git a/substrate/validator-sets/pallet/src/lib.rs b/substrate/validator-sets/pallet/src/lib.rs index 750253352..7710b4b4b 100644 --- a/substrate/validator-sets/pallet/src/lib.rs +++ b/substrate/validator-sets/pallet/src/lib.rs @@ -803,17 +803,12 @@ pub mod pallet { (AuthorityId::from(*id), allocation / allocation_per_key_share) }) .collect::>(); - - let next_authorities = WeakBoundedVec::<_, C::MaxAuthorities>::force_from( - next_authorities, - Some( - "Warning: The session has more queued validators than expected. \ - A runtime configuration adjustment may be needed.", - ), - ); + let next_authorities = + WeakBoundedVec::<_, C::MaxAuthorities>::try_from(next_authorities).unwrap(); // get the current session index let session = Self::session(network).unwrap().0; + BabePallet::::enact_epoch_change(authorities, next_authorities, Some(session)) } }