[#TxValidationState-Error]
= xref:TxValidationState.adoc[TxValidationState]::Error
:relfileprefix: ../
:mrdocs:

Puts the state into the run&hyphen;time error mode&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Error(std::string const& reject&lowbar;reason);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *reject&lowbar;reason*
| Reason recorded when the state was previously valid&period;
|===


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