mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-26 17:24:20 +01:00
lightningd: remove deprecated_apis global, put into lightningd.
We usually have access to `ld`, so avoid the global. The only place generic code needs it is for the json command struct, and that already has accessors: add one for libplugin and lightningd to tell it if deprecated apis are OK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -82,7 +82,7 @@ static struct command_result *param_feerate_unchecked(struct command *cmd,
|
||||
|
||||
if (!json_tok_streq(buffer, tok, feerate_name(i)))
|
||||
continue;
|
||||
if (!deprecated_apis)
|
||||
if (!cmd->ld->deprecated_apis)
|
||||
return command_fail_badparam(cmd, name, buffer, tok,
|
||||
"removed feerate by names");
|
||||
switch (i) {
|
||||
|
||||
Reference in New Issue
Block a user