mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
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>
This commit is contained in:
parent
39d5117210
commit
ae7485d2ac
@ -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…
Reference in New Issue
Block a user