Simplify onion message blinded hop construction
[rust-lightning] / lightning / src / ln / chan_utils.rs
index 85490afaec1292bf792d245c18b13c3b54d78b0a..9ee564df59d99e7679b244101bab4c0c5742ff68 100644 (file)
@@ -1356,7 +1356,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),
                        (2, to_broadcaster_value_sat, required),
                        (4, to_countersignatory_value_sat, required),