| 530 | } |
| 531 | |
| 532 | static 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 */ |
| 546 | static void prompt(struct lightningd *ld, const char *str) |
nothing calls this directly
no test coverage detected