[T4] Rename all shiftsize / cuckoo_size to edge_bits and change value for T4 (#1752)

* replace all size_shift / cuckoo_size by edge_bits and change some constants for T4
* replace remaining occurrences of sizeshift
This commit is contained in:
John Tromp
2018-10-16 01:14:23 +02:00
committed by Ignotus Peverell
parent a41022f1e3
commit 34646ddf51
22 changed files with 136 additions and 137 deletions
+2 -2
View File
@@ -502,7 +502,7 @@ pub struct BlockHeaderPrintable {
/// Nonce increment used to mine this block.
pub nonce: u64,
/// Size of the cuckoo graph
pub cuckoo_size: u8,
pub edge_bits: u8,
pub cuckoo_solution: Vec<u64>,
/// Total accumulated difficulty since genesis block
pub total_difficulty: u64,
@@ -522,7 +522,7 @@ impl BlockHeaderPrintable {
range_proof_root: util::to_hex(h.range_proof_root.to_vec()),
kernel_root: util::to_hex(h.kernel_root.to_vec()),
nonce: h.pow.nonce,
cuckoo_size: h.pow.cuckoo_sizeshift(),
edge_bits: h.pow.edge_bits(),
cuckoo_solution: h.pow.proof.nonces.clone(),
total_difficulty: h.pow.total_difficulty.to_num(),
total_kernel_offset: h.total_kernel_offset.to_hex(),