Skip to content

Commit

Permalink
WIP Solve sync_wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Oct 15, 2024
1 parent 9cad21b commit d9cc69a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,10 +1209,17 @@ impl Node {
tokio::task::block_in_place(move || {
tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap().block_on(
async move {
chain_source.update_fee_rate_estimates().await?;
chain_source.sync_lightning_wallet(sync_cman, sync_cmon, sync_sweeper).await?;
chain_source.sync_onchain_wallet().await?;
Ok(())
if matches!(*self.chain_source, ChainSource::BitcoindRpc { .. }) {
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
return Ok(());
} else {
chain_source.update_fee_rate_estimates().await?;
chain_source
.sync_lightning_wallet(sync_cman, sync_cmon, sync_sweeper)
.await?;
chain_source.sync_onchain_wallet().await?;
Ok(())
}
},
)
})
Expand Down

0 comments on commit d9cc69a

Please sign in to comment.