mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 23:18:01 +00:00
Fix staking fuzzer + make it check in ci. (#5899)
This commit is contained in:
@@ -50,7 +50,7 @@ pub fn random(a: u32, b: u32) -> u32 {
|
||||
pub fn set_validator_count<T: Trait>(to_elect: u32) {
|
||||
ValidatorCount::put(to_elect);
|
||||
MinimumValidatorCount::put(to_elect / 2);
|
||||
<EraElectionStatus<T>>::put(ElectionStatus::Open(T::BlockNumber::from(1u32)));
|
||||
<EraElectionStatus<T>>::put(ElectionStatus::Closed);
|
||||
}
|
||||
|
||||
/// Build an account with the given index.
|
||||
|
||||
Reference in New Issue
Block a user