mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
options: Move non-legacy options into options.c
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
48796f4f39
commit
359c83b855
@@ -240,15 +240,6 @@ int main(int argc, char *argv[])
|
|||||||
ld->daemon_dir = find_my_path(ld, argv[0]);
|
ld->daemon_dir = find_my_path(ld, argv[0]);
|
||||||
|
|
||||||
register_opts(ld);
|
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
|
/* FIXME: move to option initialization once we drop the
|
||||||
* legacy daemon */
|
* legacy daemon */
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <lightningd/log.h>
|
#include <lightningd/log.h>
|
||||||
#include <lightningd/opt_time.h>
|
#include <lightningd/opt_time.h>
|
||||||
#include <lightningd/options.h>
|
#include <lightningd/options.h>
|
||||||
|
#include <lightningd/subd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@@ -243,6 +244,13 @@ static void dev_register_opts(struct lightningd *ld)
|
|||||||
&ld->topology->dev_no_broadcast, opt_hidden);
|
&ld->topology->dev_no_broadcast, opt_hidden);
|
||||||
opt_register_noarg("--dev-fail-on-subdaemon-fail", opt_set_bool,
|
opt_register_noarg("--dev-fail-on-subdaemon-fail", opt_set_bool,
|
||||||
&ld->dev_subdaemon_fail, opt_hidden);
|
&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 = {
|
static const struct config testnet_config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user