From de4f7ffa1ca977dc5ab50deb882c6b3aca846bf0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 8 Sep 2017 19:54:02 +0930 Subject: [PATCH] tools/generate-wire.py: ignore newly proposed optional fields Signed-off-by: Rusty Russell --- tools/generate-wire.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 1aa5969c9b20..0fb26de45110 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -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)