Implementation of CheckProofOfWork that verifies a hash against a compact target.
Declared in <pow.h>
bool
CheckProofOfWorkImpl(
uint256 hash,
unsigned int nBits,
Consensus::Params const& params);
true if the hash meets the target specified by nBits.
| 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. |