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

Function notify_disconnect

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

Source from the content-addressed store, hash-verified

81 disconnect_notification_serialize);
82
83void notify_disconnect(struct lightningd *ld, struct node_id *nodeid)
84{
85 void (*serialize)(struct json_stream *,
86 struct node_id *) = disconnect_notification_gen.serialize;
87
88 struct jsonrpc_notification *n
89 = jsonrpc_notification_start(NULL, disconnect_notification_gen.topic);
90 serialize(n->stream, nodeid);
91 jsonrpc_notification_end(n);
92 plugins_notify(ld->plugins, take(n));
93}
94
95/*'warning' is based on LOG_UNUSUAL/LOG_BROKEN level log
96 *(in plugin module, they're 'warn'/'error' level). */

Callers 1

peer_disconnect_doneFunction · 0.70

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected