cuprate_consensus_rules::blocks

Function check_block_pow

Source
pub fn check_block_pow(
    hash: &[u8; 32],
    difficulty: u128,
) -> Result<(), BlockError>
Expand description

Returns if the blocks POW hash is valid for the current difficulty.

ref: https://monero-book.cuprate.org/consensus_rules/blocks.html#checking-pow-hash