From 6dfa04f6c7f6e5649f44ccf1503d9ce6b75d7568 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 19 Oct 2023 10:11:12 +0200 Subject: [PATCH] bitcoin: also log the number of verified blocks in the poller --- src/bitcoin/poller/looper.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bitcoin/poller/looper.rs b/src/bitcoin/poller/looper.rs index 9f3fe4b2..0d64eabe 100644 --- a/src/bitcoin/poller/looper.rs +++ b/src/bitcoin/poller/looper.rs @@ -358,8 +358,10 @@ pub fn looper( if !synced { let progress = bit.sync_progress(); log::info!( - "Block chain synchronization progress: {:.2}%", - progress.rounded_up_progress() * 100.0 + "Block chain synchronization progress: {:.2}% ({} blocks / {} headers)", + progress.rounded_up_progress() * 100.0, + progress.blocks, + progress.headers ); synced = progress.is_complete(); if !synced {