TxValidationState::Error

Puts the state into the run-time error mode.

Synopsis

Declared in <consensus/validation.h>

bool
Error(std::string const& reject_reason);

Return Value

Always false, so callers can return this directly.

Parameters

NameDescription
reject_reasonReason recorded when the state was previously valid.