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

Function plugin_notification_allowed

lightningd/plugin.c:466–473  ·  view source on GitHub ↗

Check if the plugin is allowed to send a notification of the * specified topic, i.e., whether the plugin has announced the topic * correctly in its manifest. */

Source from the content-addressed store, hash-verified

464 * specified topic, i.e., whether the plugin has announced the topic
465 * correctly in its manifest. */
466static bool plugin_notification_allowed(const struct plugin *plugin, const char *topic)
467{
468 for (size_t i=0; i<tal_count(plugin->notification_topics); i++)
469 if (streq(plugin->notification_topics[i], topic))
470 return true;
471
472 return false;
473}
474
475/* Returns the error string, or NULL */
476static const char *plugin_notification_handle(struct plugin *plugin,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected