found last few instrances of Difficulty::one
This commit is contained in:
+2
-2
@@ -141,12 +141,12 @@ mod test {
|
||||
b.header.pow.nonce = 485;
|
||||
pow_size(
|
||||
&mut b.header,
|
||||
Difficulty::one(),
|
||||
Difficulty::min(),
|
||||
global::proofsize(),
|
||||
global::min_edge_bits(),
|
||||
).unwrap();
|
||||
assert!(b.header.pow.nonce != 310);
|
||||
assert!(b.header.pow.to_difficulty() >= Difficulty::one());
|
||||
assert!(b.header.pow.to_difficulty() >= Difficulty::min());
|
||||
assert!(verify_size(&b.header, global::min_edge_bits()).is_ok());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,12 +64,6 @@ impl Difficulty {
|
||||
Difficulty { num: 0 }
|
||||
}
|
||||
|
||||
/// Difficulty of one, which is the minimum difficulty
|
||||
/// (when the hash equals the max target)
|
||||
pub fn one() -> Difficulty {
|
||||
Difficulty { num: 1 }
|
||||
}
|
||||
|
||||
/// Difficulty of MIN_DIFFICULTY
|
||||
pub fn min() -> Difficulty {
|
||||
Difficulty { num: MIN_DIFFICULTY }
|
||||
|
||||
Reference in New Issue
Block a user