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 @@ -1207,10 +1207,17 @@ impl Node {
12071207 tokio:: task:: block_in_place ( move || {
12081208 tokio:: runtime:: Builder :: new_multi_thread ( ) . enable_all ( ) . build ( ) . unwrap ( ) . block_on (
12091209 async move {
1210- chain_source. update_fee_rate_estimates ( ) . await ?;
1211- chain_source. sync_lightning_wallet ( sync_cman, sync_cmon, sync_sweeper) . await ?;
1212- chain_source. sync_onchain_wallet ( ) . await ?;
1213- Ok ( ( ) )
1210+ if matches ! ( * self . chain_source, ChainSource :: BitcoindRpc { .. } ) {
1211+ tokio:: time:: sleep ( std:: time:: Duration :: from_secs ( 10 ) ) . await ;
1212+ return Ok ( ( ) ) ;
1213+ } else {
1214+ chain_source. update_fee_rate_estimates ( ) . await ?;
1215+ chain_source
1216+ . sync_lightning_wallet ( sync_cman, sync_cmon, sync_sweeper)
1217+ . await ?;
1218+ chain_source. sync_onchain_wallet ( ) . await ?;
1219+ Ok ( ( ) )
1220+ }
12141221 } ,
12151222 )
12161223 } )
You can’t perform that action at this time.
0 commit comments