Closed crisdut closed 1 year ago
It is very impressive that you was able to figure out the reason of the issue. From your results it becomes clear that indeed TLV stream has to be the last data in the structure, so if emedded structures have TLV stream and they are not the last field they would not work! This is a logical bug in lightning/strict encoding crates, opening an issues for that:
I tried open a channel between two
lnp nodes
, but this error occurs:After invetigate, I found the reason:
For some reason, the type
tvl::Stream (BTreeMap<Type, RawValue>)
need the last field of the struct when we uses strict encode/decode.