mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 06:54:30 +01:00
lightningd: implement more show commands to reduce listconfigs special casing.
Note that this actually changes listconfigs output for three msat fields, which were not changed with the great msat merge. Since listconfigs isn't actually used by grpc, and the values are always a little vague, I simply changed this. Changelog-Fixed: JSON-RPC: `listconfigs` `htlc-minimum-msat`, `htlc-maximum-msat` and `max-dust-htlc-exposure-msat` fields are now numbers, not strings. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -239,11 +239,6 @@ bool is_restricted_ignored(const void *fn)
|
||||
|| fn == opt_restricted_forceconf_only;
|
||||
}
|
||||
|
||||
bool is_restricted_print_if_nonnull(const void *fn)
|
||||
{
|
||||
return fn == opt_restricted_cmdline;
|
||||
}
|
||||
|
||||
void setup_option_allocators(void)
|
||||
{
|
||||
/*~ These functions make ccan/opt use tal for allocations */
|
||||
@@ -324,7 +319,9 @@ void initial_config_opts(const tal_t *ctx,
|
||||
|
||||
/* This is only ever valid on cmdline */
|
||||
opt_register_early_arg("--conf=<file>",
|
||||
opt_restricted_cmdline, NULL,
|
||||
opt_restricted_cmdline,
|
||||
/* This doesn't show if NULL! */
|
||||
opt_show_charp,
|
||||
config_filename,
|
||||
"Specify configuration file");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user