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