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

Function plugin_notification_start_obs

plugins/libplugin.c:1866–1877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864}
1865
1866struct json_stream *plugin_notification_start_obs(const tal_t *ctx,
1867 const char *method)
1868{
1869 struct json_stream *js = new_json_stream(ctx, NULL, NULL);
1870
1871 json_object_start(js, NULL);
1872 json_add_string(js, "jsonrpc", "2.0");
1873 json_add_string(js, "method", method);
1874
1875 json_object_start(js, "params");
1876 return js;
1877}
1878
1879void plugin_notification_end_obs(struct plugin *plugin,
1880 struct json_stream *stream STEALS)

Callers 4

channel_hint_notifyFunction · 0.70
payment_notify_failureFunction · 0.70
json_add_payment_successFunction · 0.70

Calls 3

new_json_streamFunction · 0.85
json_object_startFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected