Mark a block as invalid.
Declared in <validation.h>
[[requires_capability(0x7f2e1ba84938), locks_excluded(0x7f2e1ba84a08), requires_capability(0x7f2e14564588), locks_excluded(0x7f2e14564658), requires_capability(0x7f2e373bd738), locks_excluded(0x7f2e373bd808), requires_capability(0x7f2e36e34388), locks_excluded(0x7f2e36e34458)]]
bool
InvalidateBlock(
BlockValidationState& state,
CBlockIndex* pindex);
true unless a system error occurred.
| Name | Description |
|---|---|
| state | Validation state updated with the reason for any failure. |
| pindex | Block index entry of the block to mark as invalid. |