mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
190b30e958
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>
14 lines
446 B
C
14 lines
446 B
C
#ifndef LIGHTNING_DAEMON_OPT_TIME_H
|
|
#define LIGHTNING_DAEMON_OPT_TIME_H
|
|
#include "config.h"
|
|
#include <ccan/opt/opt.h>
|
|
#include <ccan/time/time.h>
|
|
|
|
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 */
|