mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
Fix Tendermint bug from prior commit
This commit is contained in:
parent
f6f945e747
commit
ad51c123e3
1 changed files with 3 additions and 1 deletions
|
@ -312,7 +312,9 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
||||||
// If we're past the start time, skip to and only join the next round
|
// If we're past the start time, skip to and only join the next round
|
||||||
let rounds_to_skip = Instant::now().duration_since(start_time.instant()).as_secs() /
|
let rounds_to_skip = Instant::now().duration_since(start_time.instant()).as_secs() /
|
||||||
u64::from(N::block_time());
|
u64::from(N::block_time());
|
||||||
|
if rounds_to_skip != 0 {
|
||||||
machine.round(RoundNumber(rounds_to_skip.try_into().unwrap()), None);
|
machine.round(RoundNumber(rounds_to_skip.try_into().unwrap()), None);
|
||||||
|
}
|
||||||
machine
|
machine
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue