[#Chainstate-InvalidBlockFound]
= xref:Chainstate.adoc[Chainstate]::InvalidBlockFound
:relfileprefix: ../
:mrdocs:

Record that a block was found to be invalid and update fork&hyphen;warning state&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba85750), requires&lowbar;capability(0x7f2e145653a0), requires&lowbar;capability(0x7f2e373be550), requires&lowbar;capability(0x7f2e36e351a0)&rsqb;&rsqb;
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&period;
| *state*
| Validation state describing why the block is invalid&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
