mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
Correct TendermintMachine sleep on construction
For logging purposes, I added code to handle negative time till start. I forgot to only sleep on positive time till start. Should fix the recent CI failure.
This commit is contained in:
parent
8992504e69
commit
6b41c91dc2
1 changed files with 3 additions and 1 deletions
|
@ -281,7 +281,9 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
|||
);
|
||||
|
||||
// If the last block hasn't ended yet, sleep until it has
|
||||
sleep(time_until).await;
|
||||
if !negative {
|
||||
sleep(time_until).await;
|
||||
}
|
||||
|
||||
let signer = network.signer();
|
||||
let validators = network.signature_scheme();
|
||||
|
|
Loading…
Reference in a new issue