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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user