Browse Source

tools/generate-wire.py: don't define empty enums.

For bolt 13, we have no message types, just a TLV.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
nifty/pset-pre
Rusty Russell 5 years ago
parent
commit
ae7485d2ac
  1. 9
      tools/generate-wire.py

9
tools/generate-wire.py

@ -512,10 +512,11 @@ class Master(object):
def write(self, options, output):
template = self.find_template(options)
enum_sets = []
enum_sets.append({
'name': options.enum_name,
'set': self.messages.values(),
})
if len(self.messages.values()) != 0:
enum_sets.append({
'name': options.enum_name,
'set': self.messages.values(),
})
stuff = {}
stuff['top_comments'] = self.top_comments
stuff['options'] = options

Loading…
Cancel
Save