File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ impl<E: ElectrumApi> BdkElectrumClient<E> {
309
309
}
310
310
}
311
311
}
312
+
313
+ if unused_spk_count >= stop_gap {
314
+ break ;
315
+ }
312
316
}
313
317
314
318
// Batch validate all collected transactions
@@ -542,6 +546,7 @@ impl<E: ElectrumApi> BdkElectrumClient<E> {
542
546
}
543
547
544
548
// Replace the old validate_merkle_for_anchor with optimized batch version
549
+ #[ allow( dead_code) ]
545
550
fn validate_merkle_for_anchor (
546
551
& self ,
547
552
tx_update : & mut TxUpdate < ConfirmationBlockTime > ,
Original file line number Diff line number Diff line change @@ -880,7 +880,7 @@ fn test_check_fee_calculation() -> anyhow::Result<()> {
880
880
881
881
#[ test]
882
882
pub fn test_sync_performance ( ) -> anyhow:: Result < ( ) > {
883
- const EXPECTED_MAX_SYNC_TIME : Duration = Duration :: from_secs ( 5 ) ;
883
+ const EXPECTED_MAX_SYNC_TIME : Duration = Duration :: from_secs ( 15 ) ;
884
884
const NUM_ADDRESSES : usize = 1000 ;
885
885
886
886
let env = TestEnv :: new ( ) ?;
You can’t perform that action at this time.
0 commit comments