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

Function opt_add_plugin

lightningd/options.c:454–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454static char *opt_add_plugin(const char *arg, struct lightningd *ld)
455{
456 struct plugin *p;
457 if (plugin_blacklisted(ld->plugins, arg)) {
458 log_info(ld->log, "%s: disabled via disable-plugin", arg);
459 return NULL;
460 }
461 p = plugin_register(ld->plugins, arg, NULL, false, NULL, NULL);
462 if (!p)
463 return tal_fmt(NULL, "Failed to register %s: %s", arg, strerror(errno));
464 return NULL;
465}
466
467static char *opt_disable_plugin(const char *arg, struct lightningd *ld)
468{

Callers

nothing calls this directly

Calls 3

plugin_blacklistedFunction · 0.85
log_infoClass · 0.85
plugin_registerFunction · 0.85

Tested by

no test coverage detected