Skip to content

Commit d18f668

Browse files
modified utils.rs to add configurations
1 parent a93610d commit d18f668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ pub(crate) fn new_blockchain_client(
161161
let client = match wallet_opts.client_type {
162162
#[cfg(feature = "electrum")]
163163
ClientType::Electrum => {
164-
let config = ConfigBuilder::new().validate_domain(true).build();
164+
let config = ConfigBuilder::new()
165+
.validate_domain(wallet_opts.validate_domain)
166+
.build();
165167
let client = bdk_electrum::electrum_client::Client::from_config(url, config)
166168
.map(bdk_electrum::BdkElectrumClient::new)?;
167169
BlockchainClient::Electrum {

0 commit comments

Comments
 (0)