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

Function notify_deprecated_oneshot

lightningd/notification.c:628–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628bool notify_deprecated_oneshot(struct lightningd *ld,
629 struct plugin *p,
630 bool deprecated_ok)
631{
632 struct jsonrpc_notification *n = notify_start(ld, "deprecated_oneshot");
633 if (!n)
634 return false;
635 json_add_bool(n->stream, "deprecated_ok", deprecated_ok);
636 json_object_end(n->stream);
637 jsonrpc_notification_end(n);
638 return plugin_single_notify(p, take(n));
639}
640REGISTER_NOTIFICATION(deprecated_oneshot);
641
642static void log_notification_serialize(struct json_stream *stream,

Callers 1

Calls 5

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

Tested by

no test coverage detected