Skip to content

Commit

Permalink
clarify meaning of \
Browse files Browse the repository at this point in the history
  • Loading branch information
bendyarm committed Aug 5, 2024
1 parent 600b991 commit 8a7c94c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ledger/committee/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ impl<N: Network> Committee<N> {
pub fn quorum_threshold(&self) -> u64 {
// Assuming `N = 3f + 1 + k`, where `0 <= k < 3`,
// then `2N/3 + 1 = 2f + 1 + (2k + 2)/3 = 2f + 1 + k = N - f`.
// In the line above, `/` means integer division.
self.total_stake().saturating_mul(2).saturating_div(3).saturating_add(1)
}

Expand Down

0 comments on commit 8a7c94c

Please sign in to comment.