Mark a block as invalid.
Declared in <validation.h>
[[requires_capability(0x7ff37b902588), locks_excluded(0x7ff37b902658), requires_capability(0x7ff375c49198), locks_excluded(0x7ff375c49268), requires_capability(0x7ff37e054008), locks_excluded(0x7ff37e0540d8), requires_capability(0x7ff375934f68), locks_excluded(0x7ff375935038)]]
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. |