mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fix cuckoo20 sizeshift in test
This commit is contained in:
parent
1398e0bf85
commit
f0d5406d0b
1 changed files with 9 additions and 3 deletions
|
@ -352,17 +352,23 @@ mod test {
|
||||||
let nonces1 = Miner::from_hash(blake2(&[49]).as_bytes(), 75, 42, 20)
|
let nonces1 = Miner::from_hash(blake2(&[49]).as_bytes(), 75, 42, 20)
|
||||||
.mine()
|
.mine()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(Proof::new(V1.to_vec()), nonces1);
|
let mut proof = Proof::new(V1.to_vec());
|
||||||
|
proof.cuckoo_sizeshift = 20;
|
||||||
|
assert_eq!(proof, nonces1);
|
||||||
|
|
||||||
let nonces2 = Miner::from_hash(blake2(&[50]).as_bytes(), 70, 42, 20)
|
let nonces2 = Miner::from_hash(blake2(&[50]).as_bytes(), 70, 42, 20)
|
||||||
.mine()
|
.mine()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(Proof::new(V2.to_vec()), nonces2);
|
let mut proof = Proof::new(V2.to_vec());
|
||||||
|
proof.cuckoo_sizeshift = 20;
|
||||||
|
assert_eq!(proof, nonces2);
|
||||||
|
|
||||||
let nonces3 = Miner::from_hash(blake2(&[51]).as_bytes(), 70, 42, 20)
|
let nonces3 = Miner::from_hash(blake2(&[51]).as_bytes(), 70, 42, 20)
|
||||||
.mine()
|
.mine()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(Proof::new(V3.to_vec()), nonces3);
|
let mut proof = Proof::new(V3.to_vec());
|
||||||
|
proof.cuckoo_sizeshift = 20;
|
||||||
|
assert_eq!(proof, nonces3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue