@@ -1201,7 +1201,7 @@ static u8 *send_commit_part(const tal_t *ctx,
12011201 struct tlv_commitment_signed_tlvs_splice_info );
12021202
12031203 cs_tlv -> splice_info -> batch_size = batch_size ;
1204- derive_channel_id ( & cs_tlv -> splice_info -> funding_txid , funding ) ;
1204+ cs_tlv -> splice_info -> funding_txid = funding -> txid ;
12051205 }
12061206
12071207 txs = channel_txs (tmpctx , funding , funding_sats , & htlc_map ,
@@ -1934,7 +1934,6 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
19341934 const u8 * msg2 ;
19351935 struct bitcoin_outpoint outpoint ;
19361936 struct amount_sat funding_sats ;
1937- struct channel_id active_id ;
19381937 const struct commitsig * * commitsigs ;
19391938 int remote_anchor_outnum ;
19401939 struct pubkey funding_pubkeys [NUM_SIDES ] =
@@ -1960,16 +1959,16 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
19601959 * ...
19611960 * - MUST ignore `commitment_signed` messages where `splice_channel_id`
19621961 * does not match the `channel_id` of the confirmed splice. */
1963- derive_channel_id (& active_id , & peer -> channel -> funding );
19641962 if (peer -> splice_state -> await_commitment_succcess
19651963 && !tal_count (peer -> splice_state -> inflights ) && cs_tlv && cs_tlv -> splice_info ) {
1966- if (!channel_id_eq ( & active_id ,
1967- & cs_tlv -> splice_info -> funding_txid )) {
1964+ if (!bitcoin_txid_eq ( & peer -> channel -> funding . txid ,
1965+ & cs_tlv -> splice_info -> funding_txid )) {
19681966 status_info ("Ignoring stale commit_sig for channel_id"
19691967 " %s, as %s is locked in now." ,
1970- fmt_channel_id (tmpctx ,
1971- & cs_tlv -> splice_info -> funding_txid ),
1972- fmt_channel_id (tmpctx , & active_id ));
1968+ fmt_bitcoin_txid (tmpctx ,
1969+ & cs_tlv -> splice_info -> funding_txid ),
1970+ fmt_bitcoin_txid (tmpctx ,
1971+ & peer -> channel -> funding .txid ));
19731972 return NULL ;
19741973 }
19751974 }
@@ -2071,8 +2070,8 @@ static struct commitsig_info *handle_peer_commit_sig(struct peer *peer,
20712070 fmt_bitcoin_outpoint (tmpctx , & outpoint ),
20722071 fmt_amount_sat (tmpctx , funding_sats ),
20732072 cs_tlv && cs_tlv -> splice_info
2074- ? fmt_channel_id (tmpctx ,
2075- & cs_tlv -> splice_info -> funding_txid )
2073+ ? fmt_bitcoin_txid (tmpctx ,
2074+ & cs_tlv -> splice_info -> funding_txid )
20762075 : "N/A" ,
20772076 peer -> splice_state -> await_commitment_succcess ? "yes"
20782077 : "no" ,
0 commit comments