Function roles_logic_sv2::utils::target_from_hash_rate
source ยท pub fn target_from_hash_rate(
hash_per_second: f32,
share_per_min: f32
) -> U256<'static>
Expand description
target = u256_max * (shar_per_min / 60) * (2^32 / hash_per_second) target = u128_max * ((shar_per_min / 60) * (2^32 / hash_per_second) * u128_max)