Implementation of CheckProofOfWork that verifies a hash against a compact target.
Synopsis
Declared in <pow.h>
bool
CheckProofOfWorkImpl(
uint256 hash,
unsigned int nBits,
Consensus::Params const& params);
Return Value
true if the hash meets the target specified by nBits.
Parameters
Name |
Description |
hash |
The block hash to check. |
nBits |
The proof‐of‐work requirement in compact target form. |
params |
The consensus parameters for the active chain. |
Created with MrDocs