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

Function plugin_blacklist

lightningd/plugin.c:330–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void plugin_blacklist(struct plugins *plugins, const char *name)
331{
332 struct plugin *p, *next;
333
334 log_debug(plugins->log, "blacklist for %s", name);
335 list_for_each_safe(&plugins->plugins, p, next, list) {
336 if (plugin_paths_match(p->cmd, name)) {
337 log_info(plugins->log, "%s: disabled via disable-plugin",
338 p->cmd);
339 list_del_from(&plugins->plugins, &p->list);
340 /* disable-plugin overrides important-plugin. */
341 p->important = false;
342 tal_free(p);
343 }
344 }
345
346 tal_arr_expand(&plugins->blacklist,
347 tal_strdup(plugins->blacklist, name));
348}
349
350bool plugin_blacklisted(struct plugins *plugins, const char *name)
351{

Callers 1

opt_disable_pluginFunction · 0.85

Calls 4

plugin_paths_matchFunction · 0.85
log_infoClass · 0.85
list_del_fromFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected