Function cfxcore::pow::difficulty_to_boundary
source · pub fn difficulty_to_boundary(difficulty: &U256) -> U256
Expand description
Convert difficulty to the target boundary. Basically just f(x) = 2^256 / x
.
pub fn difficulty_to_boundary(difficulty: &U256) -> U256
Convert difficulty to the target boundary. Basically just f(x) = 2^256 / x
.