-
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.
Again increase the amount of blocks we mine prior to running tests
- Loading branch information
1 parent
4743ea7
commit d99ed96
Showing
2 changed files
with
9 additions
and
5 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
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 |
---|---|---|
|
@@ -125,8 +125,10 @@ pub async fn rpc() -> SimpleRequestRpc { | |
let rpc = | ||
SimpleRequestRpc::new("http://serai:[email protected]:18081".to_string()).await.unwrap(); | ||
|
||
const BLOCKS_TO_MINE: usize = 200; | ||
|
||
// Only run once | ||
if rpc.get_height().await.unwrap() < 120 { | ||
if rpc.get_height().await.unwrap() < BLOCKS_TO_MINE { | ||
return rpc; | ||
} | ||
|
||
|
@@ -137,8 +139,8 @@ pub async fn rpc() -> SimpleRequestRpc { | |
&Scalar::random(&mut OsRng) * ED25519_BASEPOINT_TABLE, | ||
); | ||
|
||
// Mine 100 blocks to ensure decoy availability | ||
rpc.generate_blocks(&addr, 120).await.unwrap(); | ||
// Mine enough blocks to ensure decoy availability | ||
rpc.generate_blocks(&addr, BLOCKS_TO_MINE).await.unwrap(); | ||
|
||
rpc | ||
} | ||
|