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

Name

Description

reject_reason

Reason recorded when the state was previously valid.

Created with MrDocs