Correct the if check about when to mine blocks on start

Finally fixes the lack of decoy candidates failures in CI.
This commit is contained in:
Luke Parker
2024-07-06 21:14:30 -04:00
parent d99ed9698e
commit 86facaed95

View File

@@ -125,10 +125,10 @@ pub async fn rpc() -> SimpleRequestRpc {
let rpc =
SimpleRequestRpc::new("http://serai:seraidex@127.0.0.1:18081".to_string()).await.unwrap();
const BLOCKS_TO_MINE: usize = 200;
const BLOCKS_TO_MINE: usize = 110;
// Only run once
if rpc.get_height().await.unwrap() < BLOCKS_TO_MINE {
if rpc.get_height().await.unwrap() > BLOCKS_TO_MINE {
return rpc;
}