pub fn calculate_pow_hash<R: RandomX>(
randomx_vm: Option<&R>,
buf: &[u8],
height: usize,
hf: &HardFork,
) -> Result<[u8; 32], BlockError>
Expand description
Calculates the POW hash of this block.
randomx_vm
must be Some
after hf 12.
ref: https://monero-book.cuprate.org/consensus_rules/blocks.html#pow-function