@@ -99,7 +99,7 @@ pub fn test_update_tx_graph_without_keychain() -> anyhow::Result<()> {
9999 sleep ( Duration :: from_millis ( 10 ) )
100100 }
101101
102- let graph_update = env. client . scan_txs (
102+ let graph_update = env. client . scan (
103103 misc_spks. into_iter ( ) ,
104104 vec ! [ ] . into_iter ( ) ,
105105 vec ! [ ] . into_iter ( ) ,
@@ -164,7 +164,7 @@ pub fn test_update_tx_graph_gap_limit() -> anyhow::Result<()> {
164164
165165 // A scan with a gap limit of 2 won't find the transaction, but a scan with a gap limit of 3
166166 // will.
167- let ( graph_update, active_indices) = env. client . scan_txs_with_keychains (
167+ let ( graph_update, active_indices) = env. client . scan_with_keychain (
168168 keychains. clone ( ) ,
169169 vec ! [ ] . into_iter ( ) ,
170170 vec ! [ ] . into_iter ( ) ,
@@ -173,7 +173,7 @@ pub fn test_update_tx_graph_gap_limit() -> anyhow::Result<()> {
173173 ) ?;
174174 assert ! ( graph_update. full_txs( ) . next( ) . is_none( ) ) ;
175175 assert ! ( active_indices. is_empty( ) ) ;
176- let ( graph_update, active_indices) = env. client . scan_txs_with_keychains (
176+ let ( graph_update, active_indices) = env. client . scan_with_keychain (
177177 keychains. clone ( ) ,
178178 vec ! [ ] . into_iter ( ) ,
179179 vec ! [ ] . into_iter ( ) ,
@@ -201,7 +201,7 @@ pub fn test_update_tx_graph_gap_limit() -> anyhow::Result<()> {
201201
202202 // A scan with gap limit 4 won't find the second transaction, but a scan with gap limit 5 will.
203203 // The last active indice won't be updated in the first case but will in the second one.
204- let ( graph_update, active_indices) = env. client . scan_txs_with_keychains (
204+ let ( graph_update, active_indices) = env. client . scan_with_keychain (
205205 keychains. clone ( ) ,
206206 vec ! [ ] . into_iter ( ) ,
207207 vec ! [ ] . into_iter ( ) ,
@@ -212,13 +212,9 @@ pub fn test_update_tx_graph_gap_limit() -> anyhow::Result<()> {
212212 assert_eq ! ( txs. len( ) , 1 ) ;
213213 assert ! ( txs. contains( & txid_4th_addr) ) ;
214214 assert_eq ! ( active_indices[ & 0 ] , 3 ) ;
215- let ( graph_update, active_indices) = env. client . scan_txs_with_keychains (
216- keychains,
217- vec ! [ ] . into_iter ( ) ,
218- vec ! [ ] . into_iter ( ) ,
219- 5 ,
220- 1 ,
221- ) ?;
215+ let ( graph_update, active_indices) =
216+ env. client
217+ . scan_with_keychain ( keychains, vec ! [ ] . into_iter ( ) , vec ! [ ] . into_iter ( ) , 5 , 1 ) ?;
222218 let txs: HashSet < _ > = graph_update. full_txs ( ) . map ( |tx| tx. txid ) . collect ( ) ;
223219 assert_eq ! ( txs. len( ) , 2 ) ;
224220 assert ! ( txs. contains( & txid_4th_addr) && txs. contains( & txid_last_addr) ) ;
0 commit comments