[#CheckProofOfWorkImpl]
= CheckProofOfWorkImpl
:mrdocs:

Implementation of CheckProofOfWork that verifies a hash against a compact target&period;

== Synopsis

Declared in `&lt;pow&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CheckProofOfWorkImpl(
    xref:uint256.adoc[uint256] hash,
    unsigned int nBits,
    xref:Consensus/Params.adoc[Consensus::Params] const& params);
----

== Return Value

true if the hash meets the target specified by nBits&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash*
| The block hash to check&period;
| *nBits*
| The proof&hyphen;of&hyphen;work requirement in compact target form&period;
| *params*
| The consensus parameters for the active chain&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
