rgb-cln/tools/gen
lisa neigut e99720344e wire-gen: ensure that tlv messages are correctly ordered
Our TLV serializer relies on TLV outputs to be ordered by type
number. Prior to this commit we relied on 1) the ordering in the
RFC to be correct and 2) users to be using a version of Python that
respects stable ordering of dicts (i.e. Python 3.7+)

Instead of relying on these implicitly, we now explicitly sort messages
by type number when the TLV sets.

Resolves #2956.

Thanks-To: @ScottTre for the sort function
Reported-By: @ZmnSCPxj
2019-08-21 03:53:54 +00:00
..
header_template tools/generate-wire.py: add option to expose tlv_record_type 2019-08-02 17:32:48 +02:00
impl_template wire-gen: ensure that tlv messages are correctly ordered 2019-08-21 03:53:54 +00:00
print_header_template tools: fix tlv generation 2019-07-27 21:19:57 -05:00
print_impl_template tools/generate-wire.py: handle implicit tlv length fields. 2019-07-27 21:19:57 -05:00