Holds the outcome and reason of transaction‐level validation.
Synopsis
Declared in <consensus/validation.h>
class TxValidationState
: public ValidationState<TxValidationResult>
Base Classes
Name |
Description |
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
Name |
Description |
Puts the state into the run‐time error mode. |
|
Returns the human‐readable debug message. |
|
Returns the short rejection reason. |
|
Returns the recorded result code. |
|
Marks the state invalid and records the reason and debug message. |
|
Returns true if the state was marked with a run‐time error. |
|
Returns true if the state was marked invalid by a consensus or policy rule. |
|
Returns true if no validation failure has been recorded. |
|
Formats the state as a human‐readable string. |
Non-Member Functions
Name |
Description |
Check for standard transaction types |
Created with MrDocs