Fix backwards compat for `blocked_monitor_updates`
authorMatt Corallo <git@bluematt.me>
Fri, 7 Jul 2023 18:28:25 +0000 (18:28 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 7 Jul 2023 18:28:25 +0000 (18:28 +0000)
commit46913daa38fe551b284a0c1f791ca917fb731340
tree5a00f84889750b8f8f20f4da689e1f493364e1d2
parente40b6ae8b7480f44ad1f8eb0e4705d2c844562e6
Fix backwards compat for `blocked_monitor_updates`

In 1ce2beb77455a674888f3e3589723195eaa7b13c,
`Channel::blocked_monitor_updates` was moved to an even TLV to
ensure downgrades with vec entries are forbidden. However, the
serialized type remained `vec_type`, which is always written.

Instead, `optional_vec` must be used.
lightning/src/ln/channel.rs