[#Chainstate-InvalidBlockFound] = xref:Chainstate.adoc[Chainstate]::InvalidBlockFound :relfileprefix: ../ :mrdocs: Record that a block was found to be invalid and update fork‐warning state. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1ba85750), requires_capability(0x7f2e145653a0), requires_capability(0x7f2e373be550), requires_capability(0x7f2e36e351a0)]] void InvalidBlockFound( xref:CBlockIndex.adoc[CBlockIndex]* pindex, xref:BlockValidationState.adoc[BlockValidationState] const& state); ---- == Parameters [cols="1,4"] |=== | Name| Description | *pindex* | Block index entry of the invalid block. | *state* | Validation state describing why the block is invalid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#