MCPcopy Create free account
hub / github.com/ElementsProject/lightning / notify_warning

Function notify_warning

lightningd/notification.c:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124REGISTER_NOTIFICATION(warning);
125
126void notify_warning(struct lightningd *ld,
127 enum log_level level,
128 struct timeabs time,
129 const char *source,
130 const char *logmsg)
131{
132 struct jsonrpc_notification *n = notify_start(ld, "warning");
133 if (!n)
134 return;
135 warning_notification_serialize(n->stream, level, time, source, logmsg);
136 notify_send(ld, n);
137}
138
139static void custommsg_notification_serialize(struct json_stream *stream,
140 const struct node_id *peer_id,

Callers 1

logvFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected