Inconsistencies in encoding of LN messages #32
Labels
bug
Something isn't working
*compatibility*
Issues affecting compatibility and interoperability
epic
Epic task
refactoring
Refactoring of the existing code
Milestone
Lightning encoding was a trait introduced to simplify implementation for encoding different values. However, because of internal inconsistencies in how BOLTs specify encoding of the same data in different cases, this is doesn't work as intended. This is a tracking issue for all problems caused by this inconsistency. The goal is to try to "save" lightning encoding trait and derive macros, but solve all possible inconsistencies ad-hoc on a higher type level.
channel_types
inopen_channel
message TLV are encoded usingBigSize
TLV length field, while the same feature flags in the global/local features ofinit
message are encoded withu16
length value (fixed in Fix ChannelType and Script decodings in TLVs #30)CC @crisdut
The text was updated successfully, but these errors were encountered: