File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ edition = "2018"
8
8
9
9
[dependencies ]
10
10
elements-miniscript = {path = " ../" }
11
- elementsd = {version = " 0.6.0" , features =[ " 0_21_0 " , " bitcoind_22_0 " ] }
11
+ elementsd = {version = " 0.6.0" }
12
12
actual-rand = { package = " rand" , version = " 0.8.4" }
13
13
secp256k1 = {version = " 0.24.0" , features = [" rand-std" ]}
Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ pub mod test_util;
16
16
// We are not using pegins right now, but it might be required in case in future
17
17
// if we extend the tests to check pegins etc.
18
18
pub fn setup ( validate_pegin : bool ) -> ( ElementsD , Option < BitcoinD > , elements:: BlockHash ) {
19
+ // Lookup bitcoind binary path
20
+ let curr_dir = std:: env:: current_dir ( ) . unwrap ( ) ;
21
+ let bitcoind_path = curr_dir. clone ( ) . join ( "bin/bitcoind" ) ;
22
+ let elementsd_path = curr_dir. clone ( ) . join ( "bin/elementsd" ) ;
23
+
24
+ std:: env:: set_var ( "BITCOIND_EXE" , bitcoind_path) ;
25
+ std:: env:: set_var ( "ELEMENTSD_EXE" , elementsd_path) ;
26
+
19
27
let mut bitcoind = None ;
20
28
if validate_pegin {
21
29
let bitcoind_exe = bitcoind:: exe_path ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments