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