1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-24 14:50:46 +01:00
eclair/eclair-core/src
Bastien Teinturier 06ead3cf28
Add tlvField codec (#2439)
We previously duplicated `variableSizeBytesLong(varintoverflow, ...)`
whenever we wanted to work with a tlv field.

This was confusing and error-prone, so it's now factored into a specific
helper codec. We also remove the length-prefixed truncated int codecs,
as they are always used in tlvs and should simply use this new tlv field
codec instead.
2022-10-07 09:12:04 +02:00
..
main Add tlvField codec (#2439) 2022-10-07 09:12:04 +02:00
test Add tlvField codec (#2439) 2022-10-07 09:12:04 +02:00