Skip to content

Commit da4c2ca

Browse files
committed
plugin: always send allow-deprecated-apis in getmanifest.
Signed-off-by: Rusty Russell <[email protected]> Changelog-Changed: plugins: we now always send `allow-deprecated-apis` in getmanifest.
1 parent 107c7ec commit da4c2ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightningd/plugin.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,9 +1551,7 @@ const char *plugin_send_getmanifest(struct plugin *p)
15511551
p->stdin_conn = io_new_conn(p, stdinfd, plugin_stdin_conn_init, p);
15521552
req = jsonrpc_request_start(p, "getmanifest", p->log,
15531553
NULL, plugin_manifest_cb, p);
1554-
/* Adding allow-deprecated-apis is part of the deprecation cycle! */
1555-
if (!deprecated_apis)
1556-
json_add_bool(req->stream, "allow-deprecated-apis", deprecated_apis);
1554+
json_add_bool(req->stream, "allow-deprecated-apis", deprecated_apis);
15571555
jsonrpc_request_end(req);
15581556
plugin_request_send(p, req);
15591557
p->plugin_state = AWAITING_GETMANIFEST_RESPONSE;

0 commit comments

Comments
 (0)