Files
lightning/lightningd
Rusty Russell 008a59b004 lightningd: ignore default if it's a literal 'null' JSON token.
I wondered how `tests/plugins/dblog.py` worked, since it is supposed to fail
unless the `dblog-file` arg is set:

```
@plugin.init()
def init(configuration, options, plugin):
    if not plugin.get_option('dblog-file'):
        raise RpcError("No dblog-file specified")
```

But it was set to "null".  That's because 'None' in python is turned into a literal
JSON "null", and we take that as the default value.

We also cleanup the popt->description double-assignment (a leftover
from when this was optional).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: plugins: setting the default value of a parameter to `null` is the same as not setting it (pyln plugins did this!).
2022-07-26 09:33:40 -07:00
..
2021-10-15 12:09:36 +02:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-03-10 09:40:09 +10:30
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-19 17:55:31 +02:00
2022-03-30 06:27:52 +10:30
2021-10-15 12:09:36 +02:00