Skip to content

Commit 4a3ba11

Browse files
committed
Merge #536: Download local bitcoind 24.0.1
65451c2 Download local bitcoind 24.0.1 and use it integration tests (sanket1729) Pull request description: ACKs for top commit: apoelstra: ACK 65451c2 Tree-SHA512: 31db1e9d1413aa2cdef70828ca57e3de3e8408fddb6bc05b4f487e041975787c9f398dd692e1fd3710731f1c8e09488a52b7c1d5a6d69982cbaee18fc593e304
2 parents 4e7d360 + 65451c2 commit 4a3ba11

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

bitcoind-tests/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ edition = "2018"
88

99
[dependencies]
1010
miniscript = {path = "../"}
11-
bitcoind = { version = "0.29.3", features=["23_0"] }
11+
bitcoind = { version = "0.29.3" }
1212
actual-rand = { package = "rand", version = "0.8.4"}
13-
secp256k1 = {version = "0.24.0", features = ["rand-std"]}
13+
secp256k1 = {version = "0.27.0", features = ["rand-std"]}

bitcoind-tests/bin/bitcoind

14.6 MB
Binary file not shown.

bitcoind-tests/tests/setup/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ pub mod test_util;
88

99
// Launch an instance of bitcoind with
1010
pub fn setup() -> BitcoinD {
11+
// Create env var BITCOIND_EXE_PATH to point to the ../bitcoind/bin/bitcoind binary
12+
let key = "BITCOIND_EXE";
13+
let curr_dir_path = std::env::current_dir().unwrap();
14+
let bitcoind_path = curr_dir_path.join("bin").join("bitcoind");
15+
std::env::set_var(key, bitcoind_path);
16+
1117
let exe_path = bitcoind::exe_path().unwrap();
1218
let bitcoind = bitcoind::BitcoinD::new(exe_path).unwrap();
1319
let cl = &bitcoind.client;

0 commit comments

Comments
 (0)