mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
options: show the default network setting in --help.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
7e022b522c
commit
7f38943956
1 changed files with 5 additions and 8 deletions
|
@ -179,14 +179,11 @@ static char *opt_set_network(const char *arg, struct lightningd *ld)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* FIXME: Uncomment once legacy daemon has been removed */
|
||||
/*
|
||||
static void opt_show_network(char buf[OPT_SHOW_LEN],
|
||||
const struct lightningd *ld)
|
||||
{
|
||||
snprintf(buf, OPT_SHOW_LEN, "%s", ld->chainparams->network_name);
|
||||
snprintf(buf, OPT_SHOW_LEN, "%s", get_chainparams(ld)->network_name);
|
||||
}
|
||||
*/
|
||||
|
||||
static void config_register_opts(struct lightningd *ld)
|
||||
{
|
||||
|
@ -251,10 +248,10 @@ static void config_register_opts(struct lightningd *ld)
|
|||
&ld->config.ipaddr,
|
||||
"Set the IP address (v4 or v6) to announce to the network for incoming connections");
|
||||
|
||||
/* FIXME: Register opt_show_network with the option */
|
||||
opt_register_early_arg("--network", opt_set_network, NULL, ld,
|
||||
"Select the network parameters (bitcoin, testnet, "
|
||||
"regtest, or litecoin)");
|
||||
opt_register_early_arg("--network", opt_set_network, opt_show_network,
|
||||
ld,
|
||||
"Select the network parameters (bitcoin, testnet,"
|
||||
" regtest, or litecoin)");
|
||||
}
|
||||
|
||||
static char *opt_set_hsm_seed(const char *arg, struct lightningd *ld)
|
||||
|
|
Loading…
Add table
Reference in a new issue