Skip to content

Commit

Permalink
tools/generate-wire.py: ignore newly proposed optional fields
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Sep 8, 2017
1 parent ec8ec51 commit de4f7ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/generate-wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,11 @@ def print_towire(self,is_header):
messages.append(Message(parts[0],Enumtype("WIRE_" + parts[0].upper(), parts[1]), comments))
comments=[]
prevfield = None
elif len(parts) == 4:
elif len(parts) == 4 or len(parts) == 5:
# eg commit_sig,0,channel-id,8 OR
# commit_sig,0,channel-id,u64
# channel_reestablish,48,your_last_per_commitment_secret,32,option209
# FIXME: create marshal/unmarshal for options, too.
for m in messages:
if m.name == parts[0]:
f = Field(parts[0], parts[2], parts[3], comments, prevfield)
Expand Down

0 comments on commit de4f7ff

Please sign in to comment.