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

Function notify_start

lightningd/notification.c:40–52  ·  view source on GitHub ↗

Modern notifications X contain an object X */

Source from the content-addressed store, hash-verified

38
39/* Modern notifications X contain an object X */
40static struct jsonrpc_notification *notify_start(struct lightningd *ld,
41 const char *name)
42{
43 struct jsonrpc_notification *n;
44
45 /* Optimization: does anyone care? */
46 if (!plugins_anyone_cares(ld->plugins, name))
47 return NULL;
48
49 n = jsonrpc_notification_start(NULL, name);
50 json_object_start(n->stream, name);
51 return n;
52}
53
54static void notify_send(struct lightningd *ld,
55 struct jsonrpc_notification *n STEALS)

Callers 15

notify_connectFunction · 0.85
notify_disconnectFunction · 0.85
notify_warningFunction · 0.85
notify_custommsgFunction · 0.85
notify_invoice_paymentFunction · 0.85
notify_invoice_creationFunction · 0.85
notify_channel_openedFunction · 0.85
notify_forward_eventFunction · 0.85
notify_sendpay_successFunction · 0.85
notify_sendpay_failureFunction · 0.85

Calls 3

plugins_anyone_caresFunction · 0.85
json_object_startFunction · 0.85

Tested by

no test coverage detected