mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
msggen: fix incorrect assertion.
Adding a new field with `added` fails: ``` AssertionError: Field Feerates.perkb.estimates[] does not have an `added` annotation ``` Looks like this assertion is wrong: we should get an added from the field itself or from the .msggen.json file. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ca80dee514
commit
b53cc69cfd
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class VersionAnnotationPatch(Patch):
|
|||
added = m.get('added', None)
|
||||
deprecated = m.get('deprecated', None)
|
||||
|
||||
assert added or not f.added, f"Field {f.path} does not have an `added` annotation"
|
||||
assert added or f.added, f"Field {f.path} does not have an `added` annotation"
|
||||
|
||||
# We do not allow the added and deprecated flags to be
|
||||
# modified after the fact.
|
||||
|
|
Loading…
Add table
Reference in a new issue