mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-08-21 09:45:37 +00:00
![Byron Hambly](/assets/img/avatar_default.png)
* ci: add cargo check on rust stable * refactor: upgrade secp256kfun and fix resulting issues * build(deps): update sigma_fun and ecdsa_fun to a52142cf7f #1520 #1521 * chore: fix clippy issue * update to 91112f80b24 * bump to 294de1721add * chore(deps): remove spectral spectral fails to compile on rust stable 1.76 due to dep on deprecated rustc-serialize * secp256kfun: update to 7da9d277 and set rev in manifest * update to 6fdc5d8 * switch to crates.io versions of ecdsa_fun and sigma_fun * ci: update toolchain to 1.74 and fix draft action * clippy fixes --------- Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
32 lines
1.0 KiB
Rust
32 lines
1.0 KiB
Rust
use monero_harness::Monero;
|
|
use monero_rpc::monerod::MonerodRpc as _;
|
|
use std::time::Duration;
|
|
use testcontainers::clients::Cli;
|
|
use tokio::time;
|
|
use tracing_subscriber::util::SubscriberInitExt;
|
|
|
|
#[tokio::test]
|
|
async fn init_miner_and_mine_to_miner_address() {
|
|
let _guard = tracing_subscriber::fmt()
|
|
.with_env_filter("warn,test=debug,monero_harness=debug,monero_rpc=debug")
|
|
.set_default();
|
|
|
|
let tc = Cli::default();
|
|
let (monero, _monerod_container, _wallet_containers) = Monero::new(&tc, vec![]).await.unwrap();
|
|
|
|
monero.init_and_start_miner().await.unwrap();
|
|
|
|
let monerod = monero.monerod();
|
|
let miner_wallet = monero.wallet("miner").unwrap();
|
|
|
|
let got_miner_balance = miner_wallet.balance().await.unwrap();
|
|
assert!(got_miner_balance > 0);
|
|
|
|
time::sleep(Duration::from_millis(1010)).await;
|
|
|
|
// after a bit more than 1 sec another block should have been mined
|
|
let block_height = monerod.client().get_block_count().await.unwrap().count;
|
|
|
|
assert!(block_height > 70);
|
|
}
|