mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
chain stats should use head.hash() (#3348)
This commit is contained in:
parent
2223d9f7d7
commit
ce141bee29
1 changed files with 2 additions and 2 deletions
|
@ -504,7 +504,7 @@ impl Server {
|
||||||
let head_stats = ChainStats {
|
let head_stats = ChainStats {
|
||||||
latest_timestamp: head.timestamp,
|
latest_timestamp: head.timestamp,
|
||||||
height: head.height,
|
height: head.height,
|
||||||
last_block_h: head.prev_hash,
|
last_block_h: head.hash(),
|
||||||
total_difficulty: head.total_difficulty(),
|
total_difficulty: head.total_difficulty(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ impl Server {
|
||||||
let header_stats = ChainStats {
|
let header_stats = ChainStats {
|
||||||
latest_timestamp: header.timestamp,
|
latest_timestamp: header.timestamp,
|
||||||
height: header.height,
|
height: header.height,
|
||||||
last_block_h: header.prev_hash,
|
last_block_h: header.hash(),
|
||||||
total_difficulty: header.total_difficulty(),
|
total_difficulty: header.total_difficulty(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue