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

Function notify_connect

lightningd/notification.c:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71REGISTER_NOTIFICATION(connect);
72
73void notify_connect(struct lightningd *ld,
74 const struct node_id *nodeid,
75 bool incoming,
76 const struct wireaddr_internal *addr)
77{
78 struct jsonrpc_notification *n = notify_start(ld, "connect");
79 if (!n)
80 return;
81 connect_notification_serialize(n->stream, nodeid, incoming, addr);
82 notify_send(ld, n);
83}
84
85static void disconnect_notification_serialize(struct json_stream *stream,
86 const struct node_id *nodeid)

Callers 1

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected