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

Function opt_important_plugin

lightningd/options.c:532–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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