mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user