FatalError

Report an unrecoverable error, flag the validation state as failed, and notify the node to shut down.

Synopsis

Declared in <validation.h>

bool
FatalError(
    kernel::Notifications& notifications,
    BlockValidationState& state,
    bilingual_str const& message);

Return Value

Always false, so callers can return it directly.

Parameters

NameDescription
notificationsSink used to surface the fatal error to the node.
stateValidation state to mark with the fatal error.
messageHuman-readable, translatable description of the error.