mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 22:19:26 +00:00
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:
@@ -125,10 +125,10 @@ pub async fn rpc() -> SimpleRequestRpc {
|
|||||||
let rpc =
|
let rpc =
|
||||||
SimpleRequestRpc::new("http://serai:seraidex@127.0.0.1:18081".to_string()).await.unwrap();
|
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
|
// Only run once
|
||||||
if rpc.get_height().await.unwrap() < BLOCKS_TO_MINE {
|
if rpc.get_height().await.unwrap() > BLOCKS_TO_MINE {
|
||||||
return rpc;
|
return rpc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user