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

Function plugin_notification_allowed

lightningd/plugin.c:570–577  ·  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

568 * specified topic, i.e., whether the plugin has announced the topic
569 * correctly in its manifest. */
570static bool plugin_notification_allowed(const struct plugin *plugin, const char *topic)
571{
572 for (size_t i=0; i<tal_count(plugin->notification_topics); i++)
573 if (streq(plugin->notification_topics[i], topic))
574 return true;
575
576 return false;
577}
578
579/* Returns the error string, or NULL */
580static const char *plugin_notification_handle(struct plugin *plugin,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected