Merge commit 'refs/pull/408/head' of github.com:bitcoindevkit/bdk
This commit is contained in:
		
						commit
						e9428433a0
					
				| @ -72,7 +72,7 @@ test-md-docs = ["electrum"] | ||||
| lazy_static = "1.4" | ||||
| env_logger = "0.7" | ||||
| clap = "2.33" | ||||
| electrsd = { version= "0.6", features = ["trigger", "bitcoind_0_21_1"] } | ||||
| electrsd = { version= "0.8", features = ["trigger", "bitcoind_0_21_1"] } | ||||
| 
 | ||||
| [[example]] | ||||
| name = "address_validator" | ||||
|  | ||||
| @ -7,7 +7,7 @@ pub use bitcoincore_rpc::bitcoincore_rpc_json::AddressType; | ||||
| pub use bitcoincore_rpc::{Auth, Client as RpcClient, RpcApi}; | ||||
| use core::str::FromStr; | ||||
| use electrsd::bitcoind::BitcoinD; | ||||
| use electrsd::{bitcoind, ElectrsD}; | ||||
| use electrsd::{bitcoind, Conf, ElectrsD}; | ||||
| pub use electrum_client::{Client as ElectrumClient, ElectrumApi}; | ||||
| #[allow(unused_imports)] | ||||
| use log::{debug, error, info, trace}; | ||||
| @ -28,7 +28,11 @@ impl TestClient { | ||||
| 
 | ||||
|         let http_enabled = cfg!(feature = "test-esplora"); | ||||
| 
 | ||||
|         let electrsd = ElectrsD::new(electrs_exe, &bitcoind, false, http_enabled).unwrap(); | ||||
|         let conf = Conf { | ||||
|             http_enabled, | ||||
|             ..Default::default() | ||||
|         }; | ||||
|         let electrsd = ElectrsD::with_conf(electrs_exe, &bitcoind, &conf).unwrap(); | ||||
| 
 | ||||
|         let node_address = bitcoind.client.get_new_address(None, None).unwrap(); | ||||
|         bitcoind | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user