@@ -6,7 +6,7 @@ use bdk_core::{
66 bitcoin:: { BlockHash , OutPoint , Txid } ,
77 BlockId , CheckPoint , ConfirmationBlockTime , Indexed , TxUpdate ,
88} ;
9- use esplora_client:: { OutputStatus , Tx } ;
9+ use esplora_client:: { EsploraTx , OutputStatus } ;
1010use std:: thread:: JoinHandle ;
1111
1212use crate :: { insert_anchor_or_seen_at_from_status, insert_prevouts} ;
@@ -282,7 +282,7 @@ fn fetch_txs_with_keychain_spks<I: Iterator<Item = Indexed<SpkWithExpectedTxids>
282282 last_revealed : Option < u32 > ,
283283 parallel_requests : usize ,
284284) -> Result < ( TxUpdate < ConfirmationBlockTime > , Option < u32 > ) , Error > {
285- type TxsOfSpkIndex = ( u32 , Vec < esplora_client :: Tx > , HashSet < Txid > ) ;
285+ type TxsOfSpkIndex = ( u32 , Vec < EsploraTx > , HashSet < Txid > ) ;
286286
287287 let mut update = TxUpdate :: < ConfirmationBlockTime > :: default ( ) ;
288288 let mut last_active_index = Option :: < u32 > :: None ;
@@ -303,7 +303,7 @@ fn fetch_txs_with_keychain_spks<I: Iterator<Item = Indexed<SpkWithExpectedTxids>
303303 let mut last_txid = None ;
304304 let mut spk_txs = Vec :: new ( ) ;
305305 loop {
306- let txs = client. scripthash_txs ( & spk, last_txid) ?;
306+ let txs = client. get_scripthash_txs ( & spk, last_txid) ?;
307307 let tx_count = txs. len ( ) ;
308308 last_txid = txs. last ( ) . map ( |tx| tx. txid ) ;
309309 spk_txs. extend ( txs) ;
@@ -414,7 +414,7 @@ fn fetch_txs_with_txids<I: IntoIterator<Item = Txid>>(
414414 . map ( |t| ( txid, t) )
415415 } )
416416 } )
417- . collect :: < Vec < JoinHandle < Result < ( Txid , Option < Tx > ) , Error > > > > ( ) ;
417+ . collect :: < Vec < JoinHandle < Result < ( Txid , Option < EsploraTx > ) , Error > > > > ( ) ;
418418
419419 if handles. is_empty ( ) {
420420 break ;
0 commit comments