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

Function notify_plugin_shutdown

lightningd/notification.c:618–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616REGISTER_NOTIFICATION(shutdown);
617
618bool notify_plugin_shutdown(struct lightningd *ld, struct plugin *p)
619{
620 struct jsonrpc_notification *n = notify_start(ld, "shutdown");
621 if (!n)
622 return false;
623 json_object_end(n->stream);
624 jsonrpc_notification_end(n);
625 return plugin_single_notify(p, take(n));
626}
627
628bool notify_deprecated_oneshot(struct lightningd *ld,
629 struct plugin *p,

Callers 2

shutdown_pluginsFunction · 0.85
plugin_dynamic_stopFunction · 0.85

Calls 4

notify_startFunction · 0.85
json_object_endFunction · 0.85
jsonrpc_notification_endFunction · 0.85
plugin_single_notifyFunction · 0.85

Tested by

no test coverage detected