pub fn difficulty_from_bits(bits: u64) -> Result<f64, ConsensusError>Expand description
Convert compact target bits to human-readable difficulty (MAX_TARGET / target).
Used by getblockchaininfo, getmininginfo RPC for display. Formula: difficulty = MAX_TARGET / target where MAX_TARGET = 0x00000000FFFF0000000000000000000000000000000000000000000000000000 (genesis).