File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -481,6 +481,13 @@ impl ChainSource {
481
481
}
482
482
483
483
if incremental_sync {
484
+ let sync_request = onchain_wallet. get_incremental_sync_request ( ) ;
485
+ let wallet_sync_timeout_fut = tokio:: time:: timeout (
486
+ Duration :: from_secs ( BDK_WALLET_SYNC_TIMEOUT_SECS ) ,
487
+ esplora_client. sync ( sync_request, BDK_CLIENT_CONCURRENCY ) ,
488
+ ) ;
489
+ get_and_apply_wallet_update ! ( wallet_sync_timeout_fut)
490
+ } else {
484
491
let full_scan_request = onchain_wallet. get_full_scan_request ( ) ;
485
492
let wallet_sync_timeout_fut = tokio:: time:: timeout (
486
493
Duration :: from_secs ( BDK_WALLET_SYNC_TIMEOUT_SECS ) ,
@@ -491,13 +498,6 @@ impl ChainSource {
491
498
) ,
492
499
) ;
493
500
get_and_apply_wallet_update ! ( wallet_sync_timeout_fut)
494
- } else {
495
- let sync_request = onchain_wallet. get_incremental_sync_request ( ) ;
496
- let wallet_sync_timeout_fut = tokio:: time:: timeout (
497
- Duration :: from_secs ( BDK_WALLET_SYNC_TIMEOUT_SECS ) ,
498
- esplora_client. sync ( sync_request, BDK_CLIENT_CONCURRENCY ) ,
499
- ) ;
500
- get_and_apply_wallet_update ! ( wallet_sync_timeout_fut)
501
501
}
502
502
} ;
503
503
You can’t perform that action at this time.
0 commit comments