rust-lightning/lightning
Matt Corallo 71e0173d8d Fix future unknown Event variant backwards compatibility
In 8ffc2d1742, in 0.0.100, we added
a backwards compatibility feature to the reading of `Event`s - if
the type was unknown and odd, we'd simply ignore the event and
treat it as no event. However, we failed to read the
length-prefixed TLV stream when doing so, resulting in us reading
some of the skipped-event data as the next event or other data in
the ChannelManager.

We fix this by reading the varint length prefix written, then
skipping that many bytes when we come across an unknown odd event
type.
2021-09-21 20:37:35 +00:00
..
src Fix future unknown Event variant backwards compatibility 2021-09-21 20:37:35 +00:00
Cargo.toml Update versions to 0.0.100 and lightning-invoice to 0.8 2021-08-17 18:55:07 +00:00