diff --git a/lightningd/plugin.c b/lightningd/plugin.c index ad8c43611..6abd0e063 100644 --- a/lightningd/plugin.c +++ b/lightningd/plugin.c @@ -497,7 +497,7 @@ char *plugin_opt_set(const char *arg, struct plugin_opt *popt) if (streq(arg, "true") || streq(arg, "True") || streq(arg, "1")) { *popt->value->as_bool = true; } else if (streq(arg, "false") || streq(arg, "False") - || streq(arg, "0") || streq(arg, "")) { + || streq(arg, "0")) { *popt->value->as_bool = false; } else return tal_fmt(tmpctx, "%s does not parse as type %s", diff --git a/tests/test_plugin.py b/tests/test_plugin.py index c40d4d059..2397f8d6e 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -69,7 +69,7 @@ def test_option_types(node_factory): n = node_factory.get_node(options={ 'plugin': plugin_path, 'str_opt': 'ok', 'int_opt': 22, - 'bool_opt': '', + 'bool_opt': 'true', 'flag_opt': None, })