Adjust how we mine the initial blocks due to some CI test failures

This commit is contained in:
Luke Parker
2024-07-06 20:17:17 -04:00
parent c138950c21
commit 3cf0b84523

View File

@@ -126,7 +126,7 @@ pub async fn rpc() -> SimpleRequestRpc {
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();
// Only run once // Only run once
if rpc.get_height().await.unwrap() != 1 { if rpc.get_height().await.unwrap() < 100 {
return rpc; return rpc;
} }
@@ -137,8 +137,8 @@ pub async fn rpc() -> SimpleRequestRpc {
&Scalar::random(&mut OsRng) * ED25519_BASEPOINT_TABLE, &Scalar::random(&mut OsRng) * ED25519_BASEPOINT_TABLE,
); );
// Mine 80 blocks to ensure decoy availability // Mine 100 blocks to ensure decoy availability
rpc.generate_blocks(&addr, 80).await.unwrap(); rpc.generate_blocks(&addr, 100).await.unwrap();
rpc rpc
} }