pub fn to_difficulty(&self, height: u64, sec_scaling: u32) -> Difficulty {
		// 2 proof of works, Cuckoo29 (for now) and Cuckoo30+, which are scaled
		// differently (scaling not controlled for now)
		if self.edge_bits == SECOND_POW_EDGE_BITS {
			Difficulty::from_proof_scaled(&self, sec_scaling)
		} else {
			Difficulty::from_proof_adjusted(height, &self)
		}
	}
/// Maximum difficulty this proof of work can achieve
Maximum difficulty this proof of work can achieve
Maximum difficulty this proof of work can achieve
pub fn to_difficulty(&self, height: u64, sec_scaling: u32) -> Difficulty {
		// 2 proof of works, Cuckoo29 (for now) and Cuckoo30+, which are scaled
		// differently (scaling not controlled for now)
		if self.edge_bits == SECOND_POW_EDGE_BITS {
			Difficulty::from_proof_scaled(&self, sec_scaling)
		} else {
			Difficulty::from_proof_adjusted(height, &self)
		}
	}
pub fn to_difficulty ( & self , height : u64 , sec_scaling : u32 ) -> Difficulty { // 2 proof of works, Cuckoo29 (for now) and Cuckoo30+, which are scaled // differently (scaling not controlled for now) if self . edge_bits == SECOND_POW_EDGE_BITS { Difficulty :: from_proof_scaled ( & self , sec_scaling ) } else { Difficulty :: from_proof_adjusted ( height , & self ) } }
Maximum difficulty this proof of work can achieve
Maximum difficulty this proof of work can achieve
&self
height
u64
sec_scaling
u32