| 463 | } |
| 464 | |
| 465 | static const char *base_conf_file(const tal_t *ctx, |
| 466 | struct lightningd *ld, |
| 467 | bool *must_exist) |
| 468 | { |
| 469 | /* Explicit --conf? Edit that, otherwise network-specific config. */ |
| 470 | if (ld->config_filename) { |
| 471 | if (must_exist) |
| 472 | *must_exist = true; |
| 473 | return ld->config_filename; |
| 474 | } else { |
| 475 | if (must_exist) |
| 476 | *must_exist = false; |
| 477 | return path_join(ctx, ld->config_netdir, "config"); |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | static void create_setconfig_include(struct lightningd *ld) |
| 482 | { |
no test coverage detected