/// "type" : "electrum",
/// "url" : "ssl://electrum.blockstream.info:50002",
/// "retry": 2,
-/// "stop_gap": 20
+/// "stop_gap": 20,
+/// "validate_domain": true
/// }"#,
/// )
/// .unwrap();
/// socks5: None,
/// timeout: None,
/// stop_gap: 20,
+/// validate_domain: true,
/// })
/// );
/// # }
pub timeout: Option<u8>,
/// Stop searching addresses for transactions after finding an unused gap of this length
pub stop_gap: usize,
+ /// Validate the domain when using SSL
+ pub validate_domain: bool,
}
impl ConfigurableBlockchain for ElectrumBlockchain {
.retry(config.retry)
.timeout(config.timeout)?
.socks5(socks5)?
+ .validate_domain(config.validate_domain)
.build();
Ok(ElectrumBlockchain {
retry: 0,
timeout: None,
stop_gap: stop_gap,
+ validate_domain: true,
})
}
}