Marks the state invalid and records the reason and debug message.
Declared in <consensus/validation.h>
bool
Invalid(
BlockValidationResult result,
std::string const& reject_reason = "",
std::string const& debug_message = "");
Always false, so callers can return this directly.
| 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. |