mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +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>
13 lines
377 B
C
13 lines
377 B
C
#ifndef LIGHTNING_DAEMON_CONTROLLED_TIME_H
|
|
#define LIGHTNING_DAEMON_CONTROLLED_TIME_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
#include <ccan/time/time.h>
|
|
|
|
struct timeabs controlled_time(void);
|
|
void controlled_time_register_opts(void);
|
|
char *controlled_time_arg(const tal_t *ctx);
|
|
|
|
#endif /* LIGHTNING_DAEMON_CONTROLLED_TIME_H */
|