lightningd: remove deprecated null for missing plugin options.

We leave the code in contrib/pyln-client/pyln/client/lightning.py to handle
msat null fields for now, though, for a bit more compatibility.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-06-01 13:43:21 +09:30
parent 2bbd9b8a72
commit 45e16180bc
2 changed files with 1 additions and 3 deletions

View file

@ -509,6 +509,7 @@ class LightningRpc(UnixDomainSocketRpc):
# FIXME: Deprecated "listconfigs" gives two 'null' fields: # FIXME: Deprecated "listconfigs" gives two 'null' fields:
# "lease-fee-base-msat": null, # "lease-fee-base-msat": null,
# "channel-fee-max-base-msat": null, # "channel-fee-max-base-msat": null,
# FIXME: Removed for v23.08, delete this code in 24.08?
elif v is None: elif v is None:
obj[k] = None obj[k] = None
else: else:

View file

@ -2002,9 +2002,6 @@ void json_add_opt_plugins_array(struct json_stream *response,
opt_name, opt_name,
opt->type, opt->type,
opt->values[0]); opt->values[0]);
} else {
if (deprecated_apis)
json_add_null(response, opt_name);
} }
} }
json_object_end(response); json_object_end(response);