You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make TransactionType upgradable before it ships #1226
TransactionType is decoded with impl_writeable_tlv_based_enum!, which rejects any variant it doesn't know. Once a release ships, any variant added later makes payment records unreadable for nodes on that release. Switching to impl_writeable_tlv_based_enum_upgradable! and reading tx_type and self_role as upgradable_option changes four lines and leaves the bytes on disk the same. With that change, an older node reads an unknown odd variant as None and still rejects an unknown even one.
Activity
tnull commentedon Nov 10, 2026
Yeah, probably makes sense/doesn't hurt. Will put up PR shortly.