| 482 | } |
| 483 | |
| 484 | static 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 */ |
| 498 | static void prompt(struct lightningd *ld, const char *str) |
nothing calls this directly
no test coverage detected