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

Function opt_add_plugin

lightningd/options.c:495–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495static char *opt_add_plugin(const char *arg, struct lightningd *ld)
496{
497 struct plugin *p;
498 if (plugin_blacklisted(ld->plugins, arg)) {
499 log_info(ld->log, "%s: disabled via disable-plugin", arg);
500 return NULL;
501 }
502 p = plugin_register(ld->plugins, arg, NULL, false, NULL, NULL);
503 if (!p)
504 return tal_fmt(tmpctx, "Failed to register %s: %s", arg, strerror(errno));
505 return NULL;
506}
507
508static char *opt_disable_plugin(const char *arg, struct lightningd *ld)
509{

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