@@ -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
@@ -5190,7 +5191,8 @@ static void peer_reconnect(struct peer *peer,
51905191 " chain -- resending splice_locked" );
51915192 peer_write (peer -> pps ,
51925193 take (towire_splice_locked (NULL ,
5193- & peer -> channel_id )));
5194+ & peer -> channel_id ,
5195+ & inflight -> outpoint .txid )));
51945196 peer -> splice_state -> locked_ready [LOCAL ] = true;
51955197 } else if (bitcoin_txid_eq (remote_next_funding ,
51965198 & inflight -> outpoint .txid )) {
@@ -5236,7 +5238,9 @@ static void peer_reconnect(struct peer *peer,
52365238 status_info ("We have no pending splice but peer"
52375239 " expects one; resending splice_lock" );
52385240 peer_write (peer -> pps ,
5239- take (towire_splice_locked (NULL , & peer -> channel_id )));
5241+ take (towire_splice_locked (NULL ,
5242+ & peer -> channel_id ,
5243+ & peer -> channel -> funding .txid )));
52405244 }
52415245 else {
52425246 splice_abort (peer , "next_funding_txid not recognized."
@@ -5630,10 +5634,11 @@ static void handle_funding_depth(struct peer *peer, const u8 *msg)
56305634 }
56315635 }
56325636
5633- msg = towire_splice_locked (NULL , & peer -> channel_id );
5634-
56355637 peer -> splice_state -> locked_txid = txid ;
56365638
5639+ msg = towire_splice_locked (NULL , & peer -> channel_id ,
5640+ & txid );
5641+
56375642 peer_write (peer -> pps , take (msg ));
56385643
56395644 peer -> splice_state -> locked_ready [LOCAL ] = true;
0 commit comments