plugins: remove deprecated string plugin options.

This was fixed in 0.8.2.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Removed: plugins: options to init are no longer given as strings if they are bool or int types (deprecated in 0.8.2).
This commit is contained in:
Rusty Russell
2020-12-14 14:19:57 +10:30
parent 329c19f5ab
commit 646c564ec5
2 changed files with 2 additions and 28 deletions

View File

@@ -1525,15 +1525,9 @@ plugin_populate_init_request(struct plugin *plugin, struct jsonrpc_request *req)
continue;
json_add_bool(req->stream, name, *opt->value->as_bool);
if (!deprecated_apis)
continue;
}
if (opt->value->as_int) {
} else if (opt->value->as_int) {
json_add_s64(req->stream, name, *opt->value->as_int);
if (!deprecated_apis)
continue;
}
if (opt->value->as_str) {
} else if (opt->value->as_str) {
json_add_string(req->stream, name, opt->value->as_str);
}
}