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:
Luke Parker 2023-08-13 05:56:35 -04:00
parent 8992504e69
commit 6b41c91dc2
No known key found for this signature in database

View file

@ -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();