Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bitcoind binary on path bin/bitcoind for CI caching #102

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bin/bitcoind
Binary file not shown.
11 changes: 10 additions & 1 deletion src/test_framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@ impl TestFramework {
conf.args.push("-txindex=1"); //txindex is must, or else wallet sync won't work.
conf.staticdir = Some(temp_dir.join(".bitcoin"));
log::info!("bitcoind configuration: {:?}", conf.args);
let bitcoind = BitcoinD::from_downloaded_with_conf(&conf).unwrap();

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();

log::info!("Executable path: {:?}", exe_path);

let bitcoind = BitcoinD::with_conf(exe_path, &conf).unwrap();

// Generate initial 101 blocks
let mining_address = bitcoind
Expand Down
Loading