[#Chainstate-InvalidateBlock] = xref:Chainstate.adoc[Chainstate]::InvalidateBlock :relfileprefix: ../ :mrdocs: Mark a block as invalid. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[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( xref:BlockValidationState.adoc[BlockValidationState]& state, xref:CBlockIndex.adoc[CBlockIndex]* pindex); ---- == Return Value true unless a system error occurred. == Parameters [cols="1,4"] |=== | Name| Description | *state* | Validation state updated with the reason for any failure. | *pindex* | Block index entry of the block to mark as invalid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#