As pointed out in https://github.com/bitcoindevkit/rust-electrum-client/pull/58#issuecomment-
1207890096
there was no way to keep using the client once it was given to BDK.
//! ```
use std::collections::{HashMap, HashSet};
+use std::ops::Deref;
#[allow(unused_imports)]
use log::{debug, error, info, trace};
}
}
+impl Deref for ElectrumBlockchain {
+ type Target = Client;
+
+ fn deref(&self) -> &Self::Target {
+ &self.client
+ }
+}
+
impl StatelessBlockchain for ElectrumBlockchain {}
impl GetHeight for ElectrumBlockchain {