From 86facaed95bdbfa24a039d4ce1632728949cb563 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sat, 6 Jul 2024 21:14:30 -0400 Subject: [PATCH] Correct the if check about when to mine blocks on start Finally fixes the lack of decoy candidates failures in CI. --- coins/monero/wallet/tests/runner/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coins/monero/wallet/tests/runner/mod.rs b/coins/monero/wallet/tests/runner/mod.rs index 623d2602..35e31780 100644 --- a/coins/monero/wallet/tests/runner/mod.rs +++ b/coins/monero/wallet/tests/runner/mod.rs @@ -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; }