Browse Source

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
htlc_accepted_hook
lisa neigut 6 years ago
committed by Christian Decker
parent
commit
560f45cd7f
  1. 2
      tools/generate-wire.py

2
tools/generate-wire.py

@ -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

Loading…
Cancel
Save