mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
options: Move non-legacy options into options.c
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
48796f4f39
commit
359c83b855
2 changed files with 8 additions and 9 deletions
|
@ -240,15 +240,6 @@ int main(int argc, char *argv[])
|
|||
ld->daemon_dir = find_my_path(ld, argv[0]);
|
||||
|
||||
register_opts(ld);
|
||||
opt_register_arg("--dev-debugger=<subdaemon>", opt_subd_debug, NULL,
|
||||
ld, "Wait for gdb attach at start of <subdaemon>");
|
||||
|
||||
opt_register_arg("--dev-broadcast-interval=<ms>", opt_set_uintval,
|
||||
opt_show_uintval, &ld->broadcast_interval,
|
||||
"Time between gossip broadcasts in milliseconds (default: 30000)");
|
||||
|
||||
opt_register_arg("--dev-disconnect=<filename>", opt_subd_dev_disconnect,
|
||||
NULL, ld, "File containing disconnection points");
|
||||
|
||||
/* FIXME: move to option initialization once we drop the
|
||||
* legacy daemon */
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <lightningd/log.h>
|
||||
#include <lightningd/opt_time.h>
|
||||
#include <lightningd/options.h>
|
||||
#include <lightningd/subd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -243,6 +244,13 @@ static void dev_register_opts(struct lightningd *ld)
|
|||
&ld->topology->dev_no_broadcast, opt_hidden);
|
||||
opt_register_noarg("--dev-fail-on-subdaemon-fail", opt_set_bool,
|
||||
&ld->dev_subdaemon_fail, opt_hidden);
|
||||
opt_register_arg("--dev-debugger=<subdaemon>", opt_subd_debug, NULL,
|
||||
ld, "Wait for gdb attach at start of <subdaemon>");
|
||||
opt_register_arg("--dev-broadcast-interval=<ms>", opt_set_uintval,
|
||||
opt_show_uintval, &ld->broadcast_interval,
|
||||
"Time between gossip broadcasts in milliseconds (default: 30000)");
|
||||
opt_register_arg("--dev-disconnect=<filename>", opt_subd_dev_disconnect,
|
||||
NULL, ld, "File containing disconnection points");
|
||||
}
|
||||
|
||||
static const struct config testnet_config = {
|
||||
|
|
Loading…
Add table
Reference in a new issue