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

Name

Description

notifications

Sink used to surface the fatal error to the node.

state

Validation state to mark with the fatal error.

message

Human‐readable, translatable description of the error.

Created with MrDocs