pub fn quorum(n: u32) -> u32
Expand description
Compute the quorum size for a given set of n
participants. This is the minimum integer q
such that 3*q >= 2*n + 1
. It is also equal to n - f
, where f
is the maximum number of
faults.
ยงPanics
Panics if n
is zero.