[#HasValidProofOfWork] = HasValidProofOfWork :mrdocs: Check that the proof of work on each blockheader matches the value in nBits. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasValidProofOfWork( std::span<CBlockHeader const> headers, xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams); ---- == Return Value true if every header has valid proof of work. == Parameters [cols="1,4"] |=== | Name| Description | *headers* | The block headers to check. | *consensusParams* | Consensus parameters defining the proof‐of‐work rules. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#