From 88a2c0d17e6c37de0e7772fc52936e080d90cca3 Mon Sep 17 00:00:00 2001 From: adi2011 Date: Mon, 31 Jul 2023 09:03:33 +0930 Subject: [PATCH] lightningd/options: Always start in offline mode when run using --recover flag. --- lightningd/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index db647b131..f3db51d9d 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -520,7 +520,7 @@ static char *opt_set_offline(struct lightningd *ld) { ld->reconnect = false; ld->listen = false; - + log_info(ld->log, "Started in offline mode!"); 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)); } close(fd); + opt_set_offline(ld); return NULL; }