mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
cleanup weird egde_bits handling in tests (#3316)
This commit is contained in:
parent
8a22fb516a
commit
c82199bb97
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue