Skip to content

Commit

Permalink
Merge #536: Download local bitcoind 24.0.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
apoelstra committed Mar 22, 2023
2 parents 4e7d360 + 65451c2 commit 4a3ba11
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 4a3ba11

Please # to comment.