From ba9e4f93770ff3094d30e37975b6b067b79fc19d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 4 Jan 2017 14:09:21 +1030 Subject: [PATCH] generate-wire.py: allow hex values in csv files. Signed-off-by: Rusty Russell --- tools/generate-wire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 8b7d075dc..f0a72540f 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -307,7 +307,7 @@ for line in fileinput.input(args[2:]): if len(parts) == 2: # eg commit_sig,132 - messages[parts[0]] = Message(parts[0],Enumtype("WIRE_" + parts[0].upper(), int(parts[1])),comments) + messages[parts[0]] = Message(parts[0],Enumtype("WIRE_" + parts[0].upper(), int(parts[1],0)),comments) comments=[] else: # eg commit_sig,0,channel-id,8