mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Add cuckoo solution to header API
This commit is contained in:
parent
a45d17257a
commit
42bc03f5f3
1 changed files with 2 additions and 0 deletions
|
@ -484,6 +484,7 @@ pub struct BlockHeaderPrintable {
|
||||||
pub nonce: u64,
|
pub nonce: u64,
|
||||||
/// Size of the cuckoo graph
|
/// Size of the cuckoo graph
|
||||||
pub cuckoo_size: u8,
|
pub cuckoo_size: u8,
|
||||||
|
pub cuckoo_solution: Vec<u64>,
|
||||||
/// Total accumulated difficulty since genesis block
|
/// Total accumulated difficulty since genesis block
|
||||||
pub total_difficulty: u64,
|
pub total_difficulty: u64,
|
||||||
/// Total kernel offset since genesis block
|
/// Total kernel offset since genesis block
|
||||||
|
@ -503,6 +504,7 @@ impl BlockHeaderPrintable {
|
||||||
kernel_root: util::to_hex(h.kernel_root.to_vec()),
|
kernel_root: util::to_hex(h.kernel_root.to_vec()),
|
||||||
nonce: h.nonce,
|
nonce: h.nonce,
|
||||||
cuckoo_size: h.pow.cuckoo_sizeshift,
|
cuckoo_size: h.pow.cuckoo_sizeshift,
|
||||||
|
cuckoo_solution: h.pow.nonces.clone(),
|
||||||
total_difficulty: h.total_difficulty.to_num(),
|
total_difficulty: h.total_difficulty.to_num(),
|
||||||
total_kernel_offset: h.total_kernel_offset.to_hex(),
|
total_kernel_offset: h.total_kernel_offset.to_hex(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue