@@ -511,13 +511,14 @@ static void check_mutual_splice_locked(struct peer *peer)
511511}
512512
513513/* Our peer told us they saw our splice confirm on chain with `splice_locked`.
514- * If we see it to we jump into tansitioning to post-splice, otherwise we mark
514+ * If we see it to we jump into transitioning to post-splice, otherwise we mark
515515 * a flag and wait until we see it on chain too. */
516516static void handle_peer_splice_locked (struct peer * peer , const u8 * msg )
517517{
518518 struct channel_id chanid ;
519+ struct bitcoin_txid splice_txid ;
519520
520- if (!fromwire_splice_locked (msg , & chanid ))
521+ if (!fromwire_splice_locked (msg , & chanid , & splice_txid ))
521522 peer_failed_warn (peer -> pps , & peer -> channel_id ,
522523 "Bad splice_locked %s" , tal_hex (msg , msg ));
523524
@@ -5179,7 +5180,9 @@ static void peer_reconnect(struct peer *peer,
51795180 status_info ("Splice is not confirmed but locked on"
51805181 " chain -- resending splice_locked" );
51815182 peer_write (peer -> pps ,
5182- take (towire_splice_locked (NULL , & peer -> channel_id )));
5183+ take (towire_splice_locked (NULL ,
5184+ & peer -> channel_id ,
5185+ & inflight -> outpoint .txid )));
51835186 } else if (bitcoin_txid_eq (remote_next_funding ,
51845187 & inflight -> outpoint .txid )) {
51855188 /* Don't send sigs unless we have theirs */
@@ -5224,7 +5227,9 @@ static void peer_reconnect(struct peer *peer,
52245227 status_info ("We have no pending splice but peer"
52255228 " expects one; resending splice_lock" );
52265229 peer_write (peer -> pps ,
5227- take (towire_splice_locked (NULL , & peer -> channel_id )));
5230+ take (towire_splice_locked (NULL ,
5231+ & peer -> channel_id ,
5232+ & peer -> channel -> funding .txid )));
52285233 }
52295234 else {
52305235 splice_abort (peer , "next_funding_txid not recognized."
@@ -5618,10 +5623,11 @@ static void handle_funding_depth(struct peer *peer, const u8 *msg)
56185623 }
56195624 }
56205625
5621- msg = towire_splice_locked (NULL , & peer -> channel_id );
5622-
56235626 peer -> splice_state -> locked_txid = txid ;
56245627
5628+ msg = towire_splice_locked (NULL , & peer -> channel_id ,
5629+ & txid );
5630+
56255631 peer_write (peer -> pps , take (msg ));
56265632
56275633 peer -> splice_state -> locked_ready [LOCAL ] = true;
0 commit comments