From c82199bb974375a63203d8226f5a01b973d084e5 Mon Sep 17 00:00:00 2001 From: Antioch Peverell Date: Mon, 4 May 2020 12:40:16 +0100 Subject: [PATCH] cleanup weird egde_bits handling in tests (#3316) --- chain/tests/chain_test_helper.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chain/tests/chain_test_helper.rs b/chain/tests/chain_test_helper.rs index 682645934..3eb189a48 100644 --- a/chain/tests/chain_test_helper.rs +++ b/chain/tests/chain_test_helper.rs @@ -97,11 +97,7 @@ where chain.set_txhashset_roots(&mut b).unwrap(); - let edge_bits = if n == 2 { - global::min_edge_bits() + 1 - } else { - global::min_edge_bits() - }; + let edge_bits = global::min_edge_bits(); b.header.pow.proof.edge_bits = edge_bits; pow::pow_size( &mut b.header, @@ -110,7 +106,6 @@ where edge_bits, ) .unwrap(); - b.header.pow.proof.edge_bits = edge_bits; let bhash = b.hash(); chain.process_block(b, Options::MINE).unwrap();