Skip to content

Commit

Permalink
plugin: always send allow-deprecated-apis in getmanifest.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: plugins: we now always send `allow-deprecated-apis` in getmanifest.
  • Loading branch information
rustyrussell committed Apr 7, 2021
1 parent 107c7ec commit da4c2ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightningd/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,9 +1551,7 @@ const char *plugin_send_getmanifest(struct plugin *p)
p->stdin_conn = io_new_conn(p, stdinfd, plugin_stdin_conn_init, p);
req = jsonrpc_request_start(p, "getmanifest", p->log,
NULL, plugin_manifest_cb, p);
/* Adding allow-deprecated-apis is part of the deprecation cycle! */
if (!deprecated_apis)
json_add_bool(req->stream, "allow-deprecated-apis", deprecated_apis);
json_add_bool(req->stream, "allow-deprecated-apis", deprecated_apis);
jsonrpc_request_end(req);
plugin_request_send(p, req);
p->plugin_state = AWAITING_GETMANIFEST_RESPONSE;
Expand Down

0 comments on commit da4c2ca

Please sign in to comment.