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

Function notify_connect

lightningd/notification.c:57–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 connect_notification_serialize);
56
57void notify_connect(struct lightningd *ld,
58 const struct node_id *nodeid,
59 bool incoming,
60 const struct wireaddr_internal *addr)
61{
62 void (*serialize)(struct json_stream *,
63 const struct node_id *,
64 bool,
65 const struct wireaddr_internal *) = connect_notification_gen.serialize;
66
67 struct jsonrpc_notification *n
68 = jsonrpc_notification_start(NULL, connect_notification_gen.topic);
69 serialize(n->stream, nodeid, incoming, addr);
70 jsonrpc_notification_end(n);
71 plugins_notify(ld->plugins, take(n));
72}
73
74static void disconnect_notification_serialize(struct json_stream *stream,
75 struct node_id *nodeid)

Callers 1

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected