From f4ac0422e2edb9ebb0f17ac214459307a486985e Mon Sep 17 00:00:00 2001 From: Raw Pong Ghmoa <58883403+q9f@users.noreply.github.com> Date: Thu, 30 Apr 2020 08:20:54 +0200 Subject: [PATCH] beacon/notifier: display block information for current slot (#1084) --- beacon_node/client/src/notifier.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_node/client/src/notifier.rs b/beacon_node/client/src/notifier.rs index 9ce68bede..1bb649b99 100644 --- a/beacon_node/client/src/notifier.rs +++ b/beacon_node/client/src/notifier.rs @@ -122,6 +122,7 @@ pub fn spawn_notifier( ); } else { if sync_state.is_synced() { + let block_info = if current_slot > head_slot { format!(" … empty") } else { format!("{}", head_root) }; info!( log_2, "Synced"; @@ -129,6 +130,7 @@ pub fn spawn_notifier( "finalized_root" => format!("{}", finalized_root), "finalized_epoch" => finalized_epoch, "epoch" => current_epoch, + "block" => block_info, "slot" => current_slot, ); } else {