mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 11:08:03 +01:00
lightningd/options: Always start in offline mode when run using --recover flag.
This commit is contained in:
parent
82c11529ab
commit
88a2c0d17e
1 changed files with 2 additions and 1 deletions
|
@ -520,7 +520,7 @@ static char *opt_set_offline(struct lightningd *ld)
|
||||||
{
|
{
|
||||||
ld->reconnect = false;
|
ld->reconnect = false;
|
||||||
ld->listen = false;
|
ld->listen = false;
|
||||||
|
log_info(ld->log, "Started in offline mode!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1322,6 +1322,7 @@ static char *opt_set_codex32(const char *arg, struct lightningd *ld)
|
||||||
return tal_fmt(tmpctx, "fsyncdir: %s", strerror(errno));
|
return tal_fmt(tmpctx, "fsyncdir: %s", strerror(errno));
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
|
opt_set_offline(ld);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue