Merge pull request #2503 from valentinewallace/2023-08-fix-router-debug-panic
[rust-lightning] / lightning / src / ln / chan_utils.rs
index a12665dbaab1183d9d2da171e52a548dda8bcccb..18048d8efd87a50fea85cd037f375148b0f916c3 100644 (file)
@@ -1360,7 +1360,7 @@ impl Writeable for CommitmentTransaction {
 
 impl Readable for CommitmentTransaction {
        fn read<R: io::Read>(reader: &mut R) -> Result<Self, DecodeError> {
-               _init_and_read_tlv_fields!(reader, {
+               _init_and_read_len_prefixed_tlv_fields!(reader, {
                        (0, commitment_number, required),
                        (1, to_broadcaster_delay, option),
                        (2, to_broadcaster_value_sat, required),