mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
daemon: test restarting.
We add a "dev-restart" command which causes the daemon to close fds and exec itself. Then we do it after every command, with the caveat that we always send a commit before newhtlc, because if not committed, that is forgotten. Fulfillhtlc and failhtlc get resent, since they're idempotent. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -7,4 +7,7 @@
|
||||
char *opt_set_time(const char *arg, struct timerel *t);
|
||||
void opt_show_time(char buf[OPT_SHOW_LEN], const struct timerel *t);
|
||||
|
||||
char *opt_set_timeabs(const char *arg, struct timeabs *t);
|
||||
void opt_show_timeabs(char buf[OPT_SHOW_LEN], const struct timeabs *t);
|
||||
|
||||
#endif /* LIGHTNING_DAEMON_OPT_TIME_H */
|
||||
|
||||
Reference in New Issue
Block a user