chain stats should use head.hash() (#3348)

This commit is contained in:
Antioch Peverell 2020-06-10 22:41:50 +01:00 committed by GitHub
parent 2223d9f7d7
commit ce141bee29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
};