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

Function opt_important_plugin

lightningd/options.c:534–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534static char *opt_important_plugin(const char *arg, struct lightningd *ld)
535{
536 struct plugin *p;
537 if (plugin_blacklisted(ld->plugins, arg)) {
538 log_info(ld->log, "%s: disabled via disable-plugin", arg);
539 return NULL;
540 }
541 p = plugin_register(ld->plugins, arg, NULL, true, NULL, NULL);
542 if (!p)
543 return tal_fmt(tmpctx, "Failed to register %s: %s", arg, strerror(errno));
544 return NULL;
545}
546
547/* Test code looks in logs, so we print prompts to log as well as stdout */
548static 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