mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
lightningd: ignore any new options we add in deprecated output.
It's weird to add new options into the deprecated section. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
5c6e706026
commit
7f265300c7
@ -1780,10 +1780,8 @@ void add_config_deprecated(struct lightningd *ld,
|
||||
feature_offered(ld->our_features
|
||||
->bits[INIT_FEATURE],
|
||||
OPT_QUIESCE));
|
||||
} else {
|
||||
/* Insert more decodes here! */
|
||||
errx(1, "Unknown nonarg decode for %s", opt->names);
|
||||
}
|
||||
/* We ignore future additions, since these are deprecated anyway! */
|
||||
} else if (opt->type & OPT_HASARG) {
|
||||
if (opt->show == (void *)opt_show_charp) {
|
||||
if (*(char **)opt->u.carg)
|
||||
@ -1885,10 +1883,8 @@ void add_config_deprecated(struct lightningd *ld,
|
||||
} else if (strstarts(name, "dev-")) {
|
||||
/* Ignore dev settings */
|
||||
#endif
|
||||
} else {
|
||||
/* Insert more decodes here! */
|
||||
errx(1, "Unknown arg decode for %s", opt->names);
|
||||
}
|
||||
/* We ignore future additions, since these are deprecated anyway! */
|
||||
}
|
||||
|
||||
if (answer) {
|
||||
|
Loading…
Reference in New Issue
Block a user