Skip to main content

get_block_proof

Function get_block_proof 

Source
pub fn get_block_proof(bits: u64) -> Result<U256, ConsensusError>
Expand description

Per-block chainwork contribution (Orange Paper §11.3 / GetBlockProof).

For compact bits, let target = expand_target(bits). When target == 0, returns zero; otherwise (~target / (target + 1)) + 1 in 256-bit arithmetic.