Skip to content

Commit a2b10ef

Browse files
committed
WIP Solve sync_wallets
1 parent f6078e7 commit a2b10ef

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/lib.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)