diff --git a/bitcoind-tests/Cargo.toml b/bitcoind-tests/Cargo.toml index b3c7c2c83..829b61123 100644 --- a/bitcoind-tests/Cargo.toml +++ b/bitcoind-tests/Cargo.toml @@ -8,6 +8,6 @@ edition = "2018" [dependencies] miniscript = {path = "../"} -bitcoind = { version = "0.29.3", features=["23_0"] } +bitcoind = { version = "0.29.3" } actual-rand = { package = "rand", version = "0.8.4"} -secp256k1 = {version = "0.24.0", features = ["rand-std"]} \ No newline at end of file +secp256k1 = {version = "0.27.0", features = ["rand-std"]} \ No newline at end of file diff --git a/bitcoind-tests/bin/bitcoind b/bitcoind-tests/bin/bitcoind new file mode 100755 index 000000000..39d71939a Binary files /dev/null and b/bitcoind-tests/bin/bitcoind differ diff --git a/bitcoind-tests/tests/setup/mod.rs b/bitcoind-tests/tests/setup/mod.rs index 6a7f27e37..eb2de5b26 100644 --- a/bitcoind-tests/tests/setup/mod.rs +++ b/bitcoind-tests/tests/setup/mod.rs @@ -8,6 +8,12 @@ pub mod test_util; // Launch an instance of bitcoind with pub fn setup() -> BitcoinD { + // Create env var BITCOIND_EXE_PATH to point to the ../bitcoind/bin/bitcoind binary + let key = "BITCOIND_EXE"; + let curr_dir_path = std::env::current_dir().unwrap(); + let bitcoind_path = curr_dir_path.join("bin").join("bitcoind"); + std::env::set_var(key, bitcoind_path); + let exe_path = bitcoind::exe_path().unwrap(); let bitcoind = bitcoind::BitcoinD::new(exe_path).unwrap(); let cl = &bitcoind.client;