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

Function plugin_blacklist

lightningd/plugin.c:410–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void plugin_blacklist(struct plugins *plugins, const char *name)
411{
412 struct plugin *p, *next;
413
414 log_debug(plugins->log, "blacklist for %s", name);
415 list_for_each_safe(&plugins->plugins, p, next, list) {
416 if (plugin_paths_match(p->cmd, name)) {
417 log_info(plugins->log, "%s: disabled via disable-plugin",
418 p->cmd);
419 list_del_from(&plugins->plugins, &p->list);
420 /* disable-plugin overrides important-plugin. */
421 p->important = false;
422 tal_free(p);
423 }
424 }
425
426 tal_arr_expand(&plugins->blacklist,
427 tal_strdup(plugins->blacklist, name));
428}
429
430bool plugin_blacklisted(struct plugins *plugins, const char *name)
431{

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