File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1209,10 +1209,17 @@ impl Node {
12091209 tokio:: task:: block_in_place ( move || {
12101210 tokio:: runtime:: Builder :: new_multi_thread ( ) . enable_all ( ) . build ( ) . unwrap ( ) . block_on (
12111211 async move {
1212- chain_source. update_fee_rate_estimates ( ) . await ?;
1213- chain_source. sync_lightning_wallet ( sync_cman, sync_cmon, sync_sweeper) . await ?;
1214- chain_source. sync_onchain_wallet ( ) . await ?;
1215- Ok ( ( ) )
1212+ if matches ! ( * self . chain_source, ChainSource :: BitcoindRpc { .. } ) {
1213+ tokio:: time:: sleep ( std:: time:: Duration :: from_secs ( 10 ) ) . await ;
1214+ return Ok ( ( ) ) ;
1215+ } else {
1216+ chain_source. update_fee_rate_estimates ( ) . await ?;
1217+ chain_source
1218+ . sync_lightning_wallet ( sync_cman, sync_cmon, sync_sweeper)
1219+ . await ?;
1220+ chain_source. sync_onchain_wallet ( ) . await ?;
1221+ Ok ( ( ) )
1222+ }
12161223 } ,
12171224 )
12181225 } )
You can’t perform that action at this time.
0 commit comments