Skip to content

Commit

Permalink
chore: log sync start times
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Nov 2, 2024
1 parent b4dfcea commit 9bd2cd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ impl ChainSource {
let incremental_sync =
node_metrics.read().unwrap().latest_onchain_wallet_sync_timestamp.is_some();

log_info!(logger, "Starting onchain wallet sync");

macro_rules! get_and_apply_wallet_update {
($sync_future: expr) => {{
let now = Instant::now();
Expand Down Expand Up @@ -555,6 +557,7 @@ impl ChainSource {
tx_sync.sync(confirmables),
);
let now = Instant::now();
log_info!(logger, "Starting lightning wallet sync");
match timeout_fut.await {
Ok(res) => match res {
Ok(()) => {
Expand Down Expand Up @@ -758,6 +761,7 @@ impl ChainSource {
..
} => {
let now = Instant::now();
log_info!(logger, "Starting fee estimates sync");
let estimates = tokio::time::timeout(
Duration::from_secs(FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS),
esplora_client.get_fee_estimates(),
Expand Down

0 comments on commit 9bd2cd4

Please sign in to comment.