[#TxValidationState-Invalid] = xref:TxValidationState.adoc[TxValidationState]::Invalid :relfileprefix: ../ :mrdocs: Marks the state invalid and records the reason and debug message. == Synopsis Declared in `<consensus/validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Invalid( xref:TxValidationResult.adoc[TxValidationResult] result, std::string const& reject_reason = "", std::string const& debug_message = ""); ---- == Return Value Always false, so callers can return this directly. == Parameters [cols="1,4"] |=== | Name| Description | *result* | The result code describing why validation failed. | *reject_reason* | Short machine‐readable rejection reason. | *debug_message* | Optional human‐readable detail for debugging. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#