[][src]Function hbbft::util::max_faulty

pub fn max_faulty(n: usize) -> usize

Given a number of nodes, returns the maximum number of faulty nodes that can be tolerated: the greatest number less than one third of n.

Panics

Panics if n == 0.