@@ -1202,7 +1202,7 @@ static u8 *send_commit_part(const tal_t *ctx,
12021202 struct tlv_commitment_signed_tlvs_splice_info );
12031203
12041204 cs_tlv -> splice_info -> batch_size = batch_size ;
1205- derive_channel_id ( & cs_tlv -> splice_info -> funding_txid , funding ) ;
1205+ cs_tlv -> splice_info -> funding_txid = funding -> txid ;
12061206 }
12071207
12081208 txs = channel_txs (tmpctx , funding , funding_sats , & htlc_map ,
@@ -1932,7 +1932,6 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
19321932 const u8 * msg2 ;
19331933 struct bitcoin_outpoint outpoint ;
19341934 struct amount_sat funding_sats ;
1935- struct channel_id active_id ;
19361935 const struct commitsig * * commitsigs ;
19371936 int remote_anchor_outnum ;
19381937 struct pubkey funding_pubkeys [NUM_SIDES ] =
@@ -1958,16 +1957,16 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
19581957 * ...
19591958 * - MUST ignore `commitment_signed` messages where `splice_channel_id`
19601959 * does not match the `channel_id` of the confirmed splice. */
1961- derive_channel_id (& active_id , & peer -> channel -> funding );
19621960 if (peer -> splice_state -> await_commitment_succcess
19631961 && !tal_count (peer -> splice_state -> inflights ) && cs_tlv && cs_tlv -> splice_info ) {
1964- if (!channel_id_eq ( & active_id ,
1965- & cs_tlv -> splice_info -> funding_txid )) {
1962+ if (!bitcoin_txid_eq ( & peer -> channel -> funding . txid ,
1963+ & cs_tlv -> splice_info -> funding_txid )) {
19661964 status_info ("Ignoring stale commit_sig for channel_id"
19671965 " %s, as %s is locked in now." ,
1968- fmt_channel_id (tmpctx ,
1969- & cs_tlv -> splice_info -> funding_txid ),
1970- fmt_channel_id (tmpctx , & active_id ));
1966+ fmt_bitcoin_txid (tmpctx ,
1967+ & cs_tlv -> splice_info -> funding_txid ),
1968+ fmt_bitcoin_txid (tmpctx ,
1969+ & peer -> channel -> funding .txid ));
19711970 return NULL ;
19721971 }
19731972 }
@@ -2069,8 +2068,8 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
20692068 fmt_bitcoin_outpoint (tmpctx , & outpoint ),
20702069 fmt_amount_sat (tmpctx , funding_sats ),
20712070 cs_tlv && cs_tlv -> splice_info
2072- ? fmt_channel_id (tmpctx ,
2073- & cs_tlv -> splice_info -> funding_txid )
2071+ ? fmt_bitcoin_txid (tmpctx ,
2072+ & cs_tlv -> splice_info -> funding_txid )
20742073 : "N/A" ,
20752074 peer -> splice_state -> await_commitment_succcess ? "yes"
20762075 : "no" ,
0 commit comments