wire generator: reverse subtype struct order

nested subtypes need to come first in the struct declaration. we
reverse the order that we read them off so that this requirement
is met
This commit is contained in:
lisa neigut 2019-04-23 17:38:42 -07:00 committed by Christian Decker
parent 0ce287d52e
commit 560f45cd7f
1 changed files with 1 additions and 1 deletions

View File

@ -1355,7 +1355,7 @@ def build_tlv_structs(tlv_fields):
def build_subtype_structs(subtypes):
structs = ""
for subtype in subtypes:
for subtype in reversed(subtypes):
structs += subtype.print_struct()
return structs