mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
msggen: fix deprecated from "False" to "None".
Turns out we set this to False instead of None, so new field get "deprecated": False. When we actually deprecate one, we get the following error: ValueError: Field Decode.offer_node_id changed `deprecated` annotation: v24.08 vs False Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
21a83a8f79
commit
0a1aa972d8
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ class CompositeField(Field):
|
|||
)
|
||||
|
||||
if field is not None:
|
||||
field.deprecated = ftype.get("deprecated", False)
|
||||
field.deprecated = ftype.get("deprecated", None)
|
||||
field.required = fname in required
|
||||
fields.append(field)
|
||||
logger.debug(field)
|
||||
|
|
Loading…
Add table
Reference in a new issue