mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Add total kernel offset to block api (#954)
This commit is contained in:
parent
1c5aee68bf
commit
8f3fbe632f
1 changed files with 3 additions and 0 deletions
|
@ -481,6 +481,8 @@ pub struct BlockHeaderPrintable {
|
|||
pub nonce: u64,
|
||||
/// Total accumulated difficulty since genesis block
|
||||
pub total_difficulty: u64,
|
||||
/// Total kernel offset since genesis block
|
||||
pub total_kernel_offset: String,
|
||||
}
|
||||
|
||||
impl BlockHeaderPrintable {
|
||||
|
@ -496,6 +498,7 @@ impl BlockHeaderPrintable {
|
|||
kernel_root: util::to_hex(h.kernel_root.to_vec()),
|
||||
nonce: h.nonce,
|
||||
total_difficulty: h.total_difficulty.into_num(),
|
||||
total_kernel_offset: h.total_kernel_offset.to_hex(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue