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

Function plugin_subscriptions_contains

lightningd/plugin.c:2019–2027  ·  view source on GitHub ↗

* Determine whether a plugin is subscribed to a given topic/method. */

Source from the content-addressed store, hash-verified

2017 * Determine whether a plugin is subscribed to a given topic/method.
2018 */
2019static bool plugin_subscriptions_contains(struct plugin *plugin,
2020 const char *method)
2021{
2022 for (size_t i = 0; i < tal_count(plugin->subscriptions); i++)
2023 if (streq(method, plugin->subscriptions[i]))
2024 return true;
2025
2026 return false;
2027}
2028
2029bool plugin_single_notify(struct plugin *p,
2030 const struct jsonrpc_notification *n TAKES)

Callers 1

plugin_single_notifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected