@@ -179,7 +179,7 @@ pub trait ElectrumExt {
179
179
) -> Result < ElectrumUpdate , Error > ;
180
180
}
181
181
182
- impl ElectrumExt for Client {
182
+ impl < A : ElectrumApi > ElectrumExt for A {
183
183
fn full_scan < K : Ord + Clone > (
184
184
& self ,
185
185
prev_tip : CheckPoint ,
@@ -303,7 +303,7 @@ impl ElectrumExt for Client {
303
303
304
304
/// Return a [`CheckPoint`] of the latest tip, that connects with `prev_tip`.
305
305
fn construct_update_tip (
306
- client : & Client ,
306
+ client : & impl ElectrumApi ,
307
307
prev_tip : CheckPoint ,
308
308
) -> Result < ( CheckPoint , Option < u32 > ) , Error > {
309
309
let HeaderNotification { height, .. } = client. block_headers_subscribe ( ) ?;
@@ -417,7 +417,7 @@ fn determine_tx_anchor(
417
417
}
418
418
419
419
fn populate_with_outpoints (
420
- client : & Client ,
420
+ client : & impl ElectrumApi ,
421
421
cps : & BTreeMap < u32 , CheckPoint > ,
422
422
relevant_txids : & mut RelevantTxids ,
423
423
outpoints : impl IntoIterator < Item = OutPoint > ,
@@ -478,7 +478,7 @@ fn populate_with_outpoints(
478
478
}
479
479
480
480
fn populate_with_txids (
481
- client : & Client ,
481
+ client : & impl ElectrumApi ,
482
482
cps : & BTreeMap < u32 , CheckPoint > ,
483
483
relevant_txids : & mut RelevantTxids ,
484
484
txids : impl IntoIterator < Item = Txid > ,
@@ -514,7 +514,7 @@ fn populate_with_txids(
514
514
}
515
515
516
516
fn populate_with_spks < I : Ord + Clone > (
517
- client : & Client ,
517
+ client : & impl ElectrumApi ,
518
518
cps : & BTreeMap < u32 , CheckPoint > ,
519
519
relevant_txids : & mut RelevantTxids ,
520
520
spks : & mut impl Iterator < Item = ( I , ScriptBuf ) > ,
0 commit comments