mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Fix the stub round robin
At some point, the modulus was removed causing it to exceed the validators list and stop proposing.
This commit is contained in:
@@ -178,6 +178,9 @@ where
|
||||
|
||||
// TODO
|
||||
fn proposer(&self, number: BlockNumber, round: Round) -> u16 {
|
||||
u16::try_from(number.0 + u64::from(round.0)).unwrap()
|
||||
u16::try_from(
|
||||
(number.0 + u64::from(round.0)) % u64::try_from(self.0.read().unwrap().lookup.len()).unwrap(),
|
||||
)
|
||||
.unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user