use bitcoind and electrsd crate to launch daemons

This commit is contained in:
Riccardo Casatta
2021-06-17 13:48:46 +02:00
parent 42adad7dbd
commit 6394c3e209
7 changed files with 52 additions and 81 deletions

View File

@@ -169,9 +169,10 @@ impl ConfigurableBlockchain for ElectrumBlockchain {
}
}
#[cfg(test)]
#[cfg(feature = "test-blockchains")]
crate::bdk_blockchain_tests! {
fn test_instance() -> ElectrumBlockchain {
ElectrumBlockchain::from(Client::new(&testutils::blockchain_tests::get_electrum_url()).unwrap())
fn test_instance(test_client: &TestClient) -> ElectrumBlockchain {
ElectrumBlockchain::from(Client::new(&test_client.electrsd.electrum_url).unwrap())
}
}