Fix staking fuzzer + make it check in ci. (#5899)

This commit is contained in:
Kian Paimani
2020-05-05 16:21:00 +02:00
committed by GitHub
parent c844ba9163
commit ca119d2611
4 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -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.