-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust how we mine the initial blocks due to some CI test failures
- Loading branch information
1 parent
c138950
commit 3cf0b84
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ pub async fn rpc() -> SimpleRequestRpc { | |
SimpleRequestRpc::new("http://serai:[email protected]:18081".to_string()).await.unwrap(); | ||
|
||
// Only run once | ||
if rpc.get_height().await.unwrap() != 1 { | ||
if rpc.get_height().await.unwrap() < 100 { | ||
return rpc; | ||
} | ||
|
||
|
@@ -137,8 +137,8 @@ pub async fn rpc() -> SimpleRequestRpc { | |
&Scalar::random(&mut OsRng) * ED25519_BASEPOINT_TABLE, | ||
); | ||
|
||
// Mine 80 blocks to ensure decoy availability | ||
rpc.generate_blocks(&addr, 80).await.unwrap(); | ||
// Mine 100 blocks to ensure decoy availability | ||
rpc.generate_blocks(&addr, 100).await.unwrap(); | ||
|
||
rpc | ||
} | ||
|