PackageValidationState::Invalid

Marks the state invalid and records the reason and debug message.

Synopsis

Declared in <consensus/validation.h>

bool
Invalid(
    PackageValidationResult result,
    std::string const& reject_reason = "",
    std::string const& debug_message = "");

Return Value

Always false, so callers can return this directly.

Parameters

NameDescription
resultThe result code describing why validation failed.
reject_reasonShort machine-readable rejection reason.
debug_messageOptional human-readable detail for debugging.