pub fn validators<C: Context>(
faulty: &HashSet<C::ValidatorId>,
inactive: &HashSet<C::ValidatorId>,
validator_stakes: BTreeMap<C::ValidatorId, U512>,
) -> Validators<C::ValidatorId>
Expand description
Computes the validator set given the stakes and the faulty and inactive reports from the previous eras.