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