Context‐independent validity checks.
Synopsis
Declared in <validation.h>
bool
CheckBlock(
CBlock const& block,
BlockValidationState& state,
Consensus::Params const& consensusParams,
bool fCheckPOW = true,
bool fCheckMerkleRoot = true);
Return Value
true if the block passes the context‐independent checks.
Parameters
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. |
Created with MrDocs