From 8f3fbe632f53721c98e04b1481d98926284eba6e Mon Sep 17 00:00:00 2001 From: jaspervdm Date: Thu, 12 Apr 2018 21:09:03 +0300 Subject: [PATCH] Add total kernel offset to block api (#954) --- api/src/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/src/types.rs b/api/src/types.rs index c052c60f5..a4eb524cb 100644 --- a/api/src/types.rs +++ b/api/src/types.rs @@ -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(), } } }