lightningd: implement recover command.

Changelog-Added: JSON-RPC: `recover` command to force (unused) lightningd node to restart with `--recover` flag.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-10-25 07:41:04 +10:30
parent 7f18ed7743
commit a50b795bc2
6 changed files with 209 additions and 12 deletions

View File

@@ -371,6 +371,8 @@ struct lightningd {
/* Should we re-exec ourselves instead of just exiting? */
bool try_reexec;
/* If set, we are to restart with --recover=... */
const char *recover_secret;
/* Array of (even) TLV types that we should allow. This is required
* since we otherwise would outright reject them. */