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

Function base_conf_file

lightningd/configs.c:465–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465static 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
481static void create_setconfig_include(struct lightningd *ld)
482{

Callers 2

create_setconfig_includeFunction · 0.85
config_not_writableFunction · 0.85

Calls 1

path_joinFunction · 0.85

Tested by

no test coverage detected