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

Function notify_disconnect

lightningd/notification.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90REGISTER_NOTIFICATION(disconnect);
91
92void notify_disconnect(struct lightningd *ld, const struct node_id *nodeid)
93{
94 struct jsonrpc_notification *n = notify_start(ld, "disconnect");
95 if (!n)
96 return;
97 disconnect_notification_serialize(n->stream, nodeid);
98 notify_send(ld, n);
99}
100
101/*'warning' is based on LOG_UNUSUAL/LOG_BROKEN level log
102 *(in plugin module, they're 'warn'/'error' level). */

Callers 1

peer_disconnectedFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected