CheckProofOfWorkImpl

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

NameDescription
hashThe block hash to check.
nBitsThe proof-of-work requirement in compact target form.
paramsThe consensus parameters for the active chain.