mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user