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

Function opt_important_plugin

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

Source from the content-addressed store, hash-verified

482}
483
484static char *opt_important_plugin(const char *arg, struct lightningd *ld)
485{
486 struct plugin *p;
487 if (plugin_blacklisted(ld->plugins, arg)) {
488 log_info(ld->log, "%s: disabled via disable-plugin", arg);
489 return NULL;
490 }
491 p = plugin_register(ld->plugins, arg, NULL, true, NULL, NULL);
492 if (!p)
493 return tal_fmt(NULL, "Failed to register %s: %s", arg, strerror(errno));
494 return NULL;
495}
496
497/* Test code looks in logs, so we print prompts to log as well as stdout */
498static void prompt(struct lightningd *ld, const char *str)

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