bolt-gen: use 'enum' instead of 'e:' prefix for enums

use 'enum ' in wirespec instead of 'e:' as an indicator
that a field is an enum.
This commit is contained in:
lisa neigut
2019-07-23 23:20:04 -05:00
committed by Rusty Russell
parent b6d4c372bb
commit 46cbca97ea
7 changed files with 15 additions and 15 deletions

View File

@@ -239,8 +239,8 @@ class Type(FieldSet):
self.tlv = False
def parse_name(self, name):
if name.startswith('e:'):
return name[2:], True
if name.startswith('enum '):
return name[5:], True
return name, False
def add_data_field(self, field_name, type_obj, count=1,