[#TxValidationState] = TxValidationState :mrdocs: Holds the outcome and reason of transaction‐level validation. == Synopsis Declared in `<consensus/validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class TxValidationState : public xref:ValidationState-04.adoc[ValidationState<TxValidationResult>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:ValidationState-04.adoc[ValidationState<TxValidationResult>]` | Template for capturing information about block/transaction validation. This is instantiated by TxValidationState and BlockValidationState for validation information on transactions and blocks respectively. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:TxValidationState/Error.adoc[`Error`] | Puts the state into the run‐time error mode. | xref:TxValidationState/GetDebugMessage.adoc[`GetDebugMessage`] | Returns the human‐readable debug message. | xref:TxValidationState/GetRejectReason.adoc[`GetRejectReason`] | Returns the short rejection reason. | xref:TxValidationState/GetResult.adoc[`GetResult`] | Returns the recorded result code. | xref:TxValidationState/Invalid.adoc[`Invalid`] | Marks the state invalid and records the reason and debug message. | xref:TxValidationState/IsError.adoc[`IsError`] | Returns true if the state was marked with a run‐time error. | xref:TxValidationState/IsInvalid.adoc[`IsInvalid`] | Returns true if the state was marked invalid by a consensus or policy rule. | xref:TxValidationState/IsValid.adoc[`IsValid`] | Returns true if no validation failure has been recorded. | xref:TxValidationState/ToString.adoc[`ToString`] | Formats the state as a human‐readable string. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ValidateInputsStandardness.adoc[`ValidateInputsStandardness`] | Check for standard transaction types |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#