pub fn threshold<P>(validators: &[P]) -> (u32, u32)
Expand description
Calculates the quorum threshold for a set of validators Returns (threshold, len) where threshold is the minimum number of validators required for a quorum, and len is the total number of validators