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
..
2022-07-20 19:28:33 +09:30
2021-10-28 15:51:38 +02:00
2022-07-15 12:24:00 -05: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-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2021-01-10 13:44:04 +01:00
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2022-01-20 15:24:06 +10:30
2022-03-05 15:12:12 +10:30
2022-02-07 13:02:09 +10:30
2022-07-25 16:28:09 +09:30
2022-07-25 16:28:09 +09:30
2022-07-15 12:24:00 -05:00
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -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-02-08 11:15:52 +10:30
2022-07-20 19:28:33 +09:30
2021-09-17 09:43:22 +09:30
2022-04-20 16:30:05 +09:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2022-07-15 12:24:00 -05:00
2020-09-08 09:42:00 +09:30
2022-03-05 15:03:34 +10:30
2019-05-31 17:57:10 +02:00
2022-07-17 08:51:02 +09:30
2022-07-15 12:24:00 -05:00
2022-07-25 16:28:09 +09:30
2022-07-25 16:28:09 +09:30
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2022-07-25 08:11:09 -07:00
2022-07-09 09:59:52 +09:30
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-03-31 19:38:05 +10:30
2022-07-15 12:24:00 -05:00
2022-07-14 12:24:48 -05:00
2021-12-28 04:42:42 +10:30
2022-07-15 12:24:00 -05:00
2021-12-01 05:44:28 +10:30
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2022-03-23 13:20:12 +10:30
2022-07-25 16:28:09 +09:30
2021-09-17 09:43:22 +09:30
2022-07-15 12:24:00 -05:00
2022-02-08 11:15:52 +10:30
2022-07-18 20:50:04 -05:00
2022-07-18 20:50:04 -05:00
2022-02-08 11:15:52 +10:30
2022-02-08 11:15:52 +10:30
2022-07-15 12:24:00 -05:00
2022-03-31 13:40:27 +10:30
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2021-06-25 09:49:33 +09:30
2022-07-15 12:24:00 -05:00
2021-09-17 09:43:22 +09:30
2022-07-26 09:33:40 -07:00
2021-12-14 09:33:10 +10:30
2022-07-15 12:24:00 -05:00
2021-06-16 10:29:17 +09:30
2022-07-19 17:55:31 +02:00
2022-07-09 09:59:52 +09:30
2022-03-30 06:27:52 +10:30
2021-12-06 10:05:39 +10:30
2021-10-15 12:09:36 +02:00