From 42bc03f5f32bff88c41353ea1bdbcb242023f06d Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Fri, 13 Jul 2018 02:20:28 +0100 Subject: [PATCH] Add cuckoo solution to header API --- api/src/types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/types.rs b/api/src/types.rs index 1219e6f13..9d08f9407 100644 --- a/api/src/types.rs +++ b/api/src/types.rs @@ -484,6 +484,7 @@ pub struct BlockHeaderPrintable { pub nonce: u64, /// Size of the cuckoo graph pub cuckoo_size: u8, + pub cuckoo_solution: Vec, /// Total accumulated difficulty since genesis block pub total_difficulty: u64, /// Total kernel offset since genesis block @@ -503,6 +504,7 @@ impl BlockHeaderPrintable { kernel_root: util::to_hex(h.kernel_root.to_vec()), nonce: h.nonce, cuckoo_size: h.pow.cuckoo_sizeshift, + cuckoo_solution: h.pow.nonces.clone(), total_difficulty: h.total_difficulty.to_num(), total_kernel_offset: h.total_kernel_offset.to_hex(), }