pub fn check_proof_of_work(header: &BlockHeader) -> Result<bool, ConsensusError>Expand description
Spec-locked to Orange Paper Section 7.2: CheckProofOfWork
CheckProofOfWork: ℋ → {true, false}
Check if the block header satisfies the proof of work requirement. Formula: SHA256(SHA256(header)) < ExpandTarget(header.bits)