mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
`vec_type` is confusing - it is happy to have a missing entry, "reading" an empty `Vec` instead, but always writes something, making a serialization round-trip different. This is a problem for writing a new `Vec` which is backwards-incompatible, but only if filled in. In that case we'd really like the same read behavior, but not write anything if the `Vec` is empty. Here we introduce such semantics via a new `optional_vec` TLV format. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |