node::Warnings

Manages warning messages within a node.

Synopsis

Declared in <node/warnings.h>

class Warnings;

Description

Collects and surfaces node warnings shown to the user and over RPC.

Member Functions

NameDescription
Warnings [constructor]Constructors
operator= [deleted]Copy assignment is deleted; a warnings instance must not be copied.
GetMessages Return potential problems detected by the node, sorted by the warning_type id
Set Set a warning message. If a warning with the specified id is already active, false is returned and the new warning is ignored. If id does not yet exist, the warning is set, the UI is updated, and true is returned.
Unset Unset a warning message. If a warning with the specified id is active, it is unset, the UI is updated, and true is returned. Otherwise, no warning is unset and false is returned.

Non-Member Functions

NameDescription
GetWarningsForRpcRPC helper function that wraps warnings.GetMessages().