diff --git a/core/src/pow/mod.rs b/core/src/pow/mod.rs index 97f8f3ad6..596dfdaa1 100644 --- a/core/src/pow/mod.rs +++ b/core/src/pow/mod.rs @@ -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()); } } diff --git a/core/src/pow/types.rs b/core/src/pow/types.rs index b4fff5b60..57d4b220b 100644 --- a/core/src/pow/types.rs +++ b/core/src/pow/types.rs @@ -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 }