Convert some `vec_type` TLVs to `required_vec`
authorMatt Corallo <git@bluematt.me>
Fri, 7 Jul 2023 18:44:24 +0000 (18:44 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 7 Jul 2023 21:07:06 +0000 (21:07 +0000)
commita04bf844d4e4bba836a2abb63197d8ebfd4c4d39
tree52dc49a672fdabed25b006f2765fc19290990f7e
parent32846d33db1c402d6eb7a268ab0dbc717db39232
Convert some `vec_type` TLVs to `required_vec`

This converts some required TLVs to `required_vec` which are, in
fact, required (and have been written forever).

* `HTLCFailReason` hasn't changed since many structs were converted
  to TLVs in 66784e32fe454e9a5b2080b85fc4d8816ac5e436.
* `NodeInfo::channels` has been written since `NetworkGraph`
  structs were converted to TLVs in 321b19c4d96a49b39b5583d0f12fea.
* Several test-only TLV writes were converted.
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/packet.rs
lightning/src/routing/gossip.rs
lightning/src/util/chacha20poly1305rfc.rs