From 64c46e86008cbb7de667a2fbabb3b5539cb2beed Mon Sep 17 00:00:00 2001 From: danda Date: Fri, 3 May 2024 08:08:52 -0700 Subject: [PATCH] chore: log timestamp when new block is mined. --- src/mine_loop.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mine_loop.rs b/src/mine_loop.rs index 0e41bfe5..769968e6 100644 --- a/src/mine_loop.rs +++ b/src/mine_loop.rs @@ -192,12 +192,15 @@ fn mine_block_worker( coinbase_utxo_info: Box::new(coinbase_utxo_info), }; + let timestamp = new_block_found.block.kernel.header.timestamp; + let timestamp_standard = timestamp.standard_format(); let hash = new_block_found.block.hash(); let hex = hash.to_hex(); let height = new_block_found.block.kernel.header.height; info!( r#"Newly mined block details: Height: {height} + Time: {timestamp_standard} ({timestamp}) Digest (Hex): {hex} Digest (Raw): {hash} Difficulty threshold: {threshold}