[#ValidationState-04-Invalid]
= xref:ValidationState-04.adoc[ValidationState]::Invalid
:relfileprefix: ../
:mrdocs:

Marks the state invalid and records the reason and debug message&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Invalid(
    Result result,
    std::string const& reject&lowbar;reason = &quot;&quot;,
    std::string const& debug&lowbar;message = &quot;&quot;);
----

== Return Value

Always false, so callers can return this directly&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| The result code describing why validation failed&period;
| *reject&lowbar;reason*
| Short machine&hyphen;readable rejection reason&period;
| *debug&lowbar;message*
| Optional human&hyphen;readable detail for debugging&period;
|===


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