[#CheckBlock] = CheckBlock :mrdocs: Context‐independent validity checks. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool CheckBlock( xref:CBlock.adoc[CBlock] const& block, xref:BlockValidationState.adoc[BlockValidationState]& state, xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams, bool fCheckPOW = true, bool fCheckMerkleRoot = true); ---- == Return Value true if the block passes the context‐independent checks. == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block to check. | *state* | Validation state updated with the reason for any failure. | *consensusParams* | Consensus parameters to check the block against. | *fCheckPOW* | Whether to check the proof of work. | *fCheckMerkleRoot* | Whether to check the merkle root. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#