[#BlockValidationState-Error] = xref:BlockValidationState.adoc[BlockValidationState]::Error :relfileprefix: ../ :mrdocs: Puts the state into the run‐time error mode. == Synopsis Declared in `<consensus/validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Error(std::string const& reject_reason); ---- == Return Value Always false, so callers can return this directly. == Parameters [cols="1,4"] |=== | Name| Description | *reject_reason* | Reason recorded when the state was previously valid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#