cleanup weird egde_bits handling in tests (#3316)

This commit is contained in:
Antioch Peverell 2020-05-04 12:40:16 +01:00 committed by GitHub
parent 8a22fb516a
commit c82199bb97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();