Placate rustfmt
This commit is contained in:
parent
f37f48918b
commit
01aeaae3f8
|
|
@ -18,8 +18,7 @@ impl Arbitrary for CompactDifficulty {
|
||||||
// In the Zcash protocol, a CompactDifficulty is generated using the difficulty
|
// In the Zcash protocol, a CompactDifficulty is generated using the difficulty
|
||||||
// adjustment functions. Instead of using those functions, we make a random
|
// adjustment functions. Instead of using those functions, we make a random
|
||||||
// ExpandedDifficulty, then convert it to a CompactDifficulty.
|
// ExpandedDifficulty, then convert it to a CompactDifficulty.
|
||||||
Some(ExpandedDifficulty::from_hash(&block::Hash(bytes))
|
Some(ExpandedDifficulty::from_hash(&block::Hash(bytes)).to_compact())
|
||||||
.to_compact())
|
|
||||||
})
|
})
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue