rust-lightning/lightning
Matt Corallo cc78b77c71 Fix unknown handling in impl_writeable_tlv_based_enum_upgradable
`impl_writeable_tlv_based_enum_upgradable` professed to supporting
upgrades by returning `None` from `MaybeReadable` when unknown
variants written by newer versions of LDK were read. However, it
generally didn't support this as it didn't discard bytes for
unknown types, resulting in corrupt reading.

This is fixed here for enum variants written as a TLV stream,
however we don't have a length prefix for tuple enum variants, so
the documentation on the macro is updated to mention that
downgrades are not supported for tuple variants.
2024-04-07 19:55:56 +00:00
..
src Fix unknown handling in impl_writeable_tlv_based_enum_upgradable 2024-04-07 19:55:56 +00:00
Cargo.toml Drop ahash dependency in favor of core's SipHasher 2024-02-16 20:34:41 +00:00