forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugins: Add recover plugin which'd identify if we've lost some state…
… and try to recover the node by entering mode.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ chanbackup | |
commando | ||
sql | ||
cln-renepay | ||
recover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "config.h" | ||
#include <ccan/array_size/array_size.h> | ||
#include <common/features.h> | ||
#include <common/gossmap.h> | ||
#include <common/hsm_encryption.h> | ||
#include <common/json_param.h> | ||
#include <common/json_stream.h> | ||
#include <common/type_to_string.h> | ||
#include <errno.h> | ||
#include <plugins/libplugin.h> | ||
#include <unistd.h> | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
setup_locale(); | ||
|
||
plugin_main(argv, init, PLUGIN_STATIC, true, NULL, | ||
NULL, 0, | ||
NULL, 0, NULL, 0, | ||
NULL, 0, /* Notification topics we publish */ | ||
NULL); | ||
} | ||
|