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

Function notify_warning

lightningd/notification.c:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 warning_notification_serialize);
120
121void notify_warning(struct lightningd *ld, struct log_entry *l)
122{
123 void (*serialize)(struct json_stream *,
124 struct log_entry *) = warning_notification_gen.serialize;
125
126 struct jsonrpc_notification *n
127 = jsonrpc_notification_start(NULL, warning_notification_gen.topic);
128 serialize(n->stream, l);
129 jsonrpc_notification_end(n);
130 plugins_notify(ld->plugins, take(n));
131}
132
133static void invoice_payment_notification_serialize(struct json_stream *stream,
134 struct amount_msat amount,

Callers 1

logvFunction · 0.70

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected