Manages warning messages within a node.
Declared in <node/warnings.h>
class Warnings;
Collects and surfaces node warnings shown to the user and over RPC.
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
GetWarningsForRpc | RPC helper function that wraps warnings.GetMessages(). |