mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Correct 2/3rds definitions throughout the codebase
The prior formula failed for some values, such as 20. 20 / 3 = 6, * 2 = 12, + 1 = 13. 13 is 65%, not >= 67.
This commit is contained in:
@@ -88,7 +88,7 @@ impl TributarySpec {
|
||||
}
|
||||
|
||||
pub fn t(&self) -> u16 {
|
||||
(2 * (self.n() / 3)) + 1
|
||||
((2 * self.n()) / 3) + 1
|
||||
}
|
||||
|
||||
pub fn i(&self, key: <Ristretto as Ciphersuite>::G) -> Option<Participant> {
|
||||
|
||||
Reference in New Issue
Block a user