Skip to content

Commit 88368df

Browse files
committed
Use proper TLV type for CommitmentSigned::funding_txid
Now that we are sure we will be moving forward with the `funding_txid` TLV, we use the TLV type as mandated per the spec.
1 parent 7a53d67 commit 88368df

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,8 +2983,7 @@ impl_writeable_msg!(CommitmentSigned, {
29832983
signature,
29842984
htlc_signatures
29852985
}, {
2986-
// TOOD(splicing): Change this to 1 once the spec is finalized
2987-
(1001, funding_txid, option),
2986+
(1, funding_txid, option),
29882987
});
29892988

29902989
#[cfg(taproot)]
@@ -2993,9 +2992,8 @@ impl_writeable_msg!(CommitmentSigned, {
29932992
signature,
29942993
htlc_signatures
29952994
}, {
2995+
(1, funding_txid, option),
29962996
(2, partial_signature_with_nonce, option),
2997-
// TOOD(splicing): Change this to 1 and reorder once the spec is finalized
2998-
(1001, funding_txid, option),
29992997
});
30002998

30012999
impl_writeable!(DecodedOnionErrorPacket, {

0 commit comments

Comments
 (0)