Update electrsd dep

This commit is contained in:
Riccardo Casatta 2021-07-26 17:03:09 +02:00
parent 1dc648508c
commit ad69702aa3
No known key found for this signature in database
GPG Key ID: FD986A969E450397
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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