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

Function plugin_single_notify

lightningd/plugin.c:2448–2463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2446}
2447
2448bool plugin_single_notify(struct plugin *p,
2449 const struct jsonrpc_notification *n TAKES)
2450{
2451 bool interested;
2452
2453 if (p->plugin_state == INIT_COMPLETE
2454 && plugin_subscriptions_contains(p, n->method)) {
2455 plugin_send(p, json_stream_dup(p, n->stream, p->log));
2456 interested = true;
2457 } else
2458 interested = false;
2459
2460 tal_free_if_taken(n);
2461
2462 return interested;
2463}
2464
2465void plugins_notify(struct plugins *plugins,
2466 const struct jsonrpc_notification *n TAKES)

Callers 2

notify_plugin_shutdownFunction · 0.85

Calls 4

plugin_sendFunction · 0.85
json_stream_dupFunction · 0.85
tal_free_if_takenFunction · 0.85

Tested by

no test coverage detected