[][src]Module hbbft::util

Utility functions

Functions not large enough to warrant their own crate or module, but flexible enough to be used in multiple disjunct places in the library. May also contain backports, workarounds.

Functions

fmt_hex

Prints a byte slice as shortened hexadecimal in debug output.

max_faulty

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.