From ce141bee29b227f0cf4f7fa228027163eb10ded1 Mon Sep 17 00:00:00 2001 From: Antioch Peverell Date: Wed, 10 Jun 2020 22:41:50 +0100 Subject: [PATCH] chain stats should use head.hash() (#3348) --- servers/src/grin/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/src/grin/server.rs b/servers/src/grin/server.rs index ce55084cd..4101e05e3 100644 --- a/servers/src/grin/server.rs +++ b/servers/src/grin/server.rs @@ -504,7 +504,7 @@ impl Server { let head_stats = ChainStats { latest_timestamp: head.timestamp, height: head.height, - last_block_h: head.prev_hash, + last_block_h: head.hash(), total_difficulty: head.total_difficulty(), }; @@ -513,7 +513,7 @@ impl Server { let header_stats = ChainStats { latest_timestamp: header.timestamp, height: header.height, - last_block_h: header.prev_hash, + last_block_h: header.hash(), total_difficulty: header.total_difficulty(), };