Trait tendermint::trust_threshold::TrustThreshold [−][src]
TrustThreshold defines how much of the total voting power of a known and trusted validator set is sufficient for a commit to be accepted going forward.
Required methods
fn is_enough_power(
&self,
signed_voting_power: u64,
total_voting_power: u64
) -> bool
[src]
&self,
signed_voting_power: u64,
total_voting_power: u64
) -> bool
Check whether the given signed voting power is sufficient according to this trust threshold against the given total voting power.
Implementors
impl TrustThreshold for TrustThresholdFraction
[src]
fn is_enough_power(
&self,
signed_voting_power: u64,
total_voting_power: u64
) -> bool
[src]
&self,
signed_voting_power: u64,
total_voting_power: u64
) -> bool