]> git.bitcoin.ninja Git - rust-lightning/commit
Add skipping variants to `impl_writeable_tlv_based_enum_upgradable`
authorMatt Corallo <git@bluematt.me>
Tue, 18 Jun 2024 17:24:21 +0000 (17:24 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 8 Jul 2024 19:06:59 +0000 (19:06 +0000)
commit1c6ce8e78913ed1dbd0e4328a6df953b6de60f50
tree47631e7c1779dd233b10d7c878970acb2faa6ac2
parent88e1b56d66ff550b36a6d422f47c9b9729406f61
Add skipping variants to `impl_writeable_tlv_based_enum_upgradable`

In some cases, we have variants of an enum serialized using
`impl_writeable_tlv_based_enum_upgradable` which we don't want to
write/read. Here we add support for such variants by writing them
using the (odd) type 255 without any contents and using
`MaybeReadable` to decline to read them.
lightning/src/util/ser_macros.rs