mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
plugins: require usage for plugin APIs.
Changelog-Removed: JSON-RPC: plugins must supply `usage` parameter (deprecated v0.7) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1205,11 +1205,9 @@ static const char *plugin_rpcmethod_add(struct plugin *plugin,
|
||||
cmd->verbose = cmd->description;
|
||||
if (usagetok)
|
||||
usage = json_strdup(tmpctx, buffer, usagetok);
|
||||
else if (!deprecated_apis) {
|
||||
else
|
||||
return tal_fmt(plugin,
|
||||
"\"usage\" not provided by plugin");
|
||||
} else
|
||||
usage = "[params]";
|
||||
|
||||
if (deptok) {
|
||||
if (!json_to_bool(buffer, deptok, &cmd->deprecated))
|
||||
|
||||
Reference in New Issue
Block a user