Skip to content

Commit

Permalink
Download local bitcoind 24.0.1 and use it integration tests
Browse files Browse the repository at this point in the history
Earlier we downloaded it on the fly
  • Loading branch information
sanket1729 committed Mar 21, 2023
1 parent 4e7d360 commit 65451c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitcoind-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
secp256k1 = {version = "0.27.0", features = ["rand-std"]}
Binary file added bitcoind-tests/bin/bitcoind
Binary file not shown.
6 changes: 6 additions & 0 deletions bitcoind-tests/tests/setup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65451c2

Please # to comment.