@@ -511,13 +511,14 @@ static void check_mutual_splice_locked(struct peer *peer)
511
511
}
512
512
513
513
/* 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
515
515
* a flag and wait until we see it on chain too. */
516
516
static void handle_peer_splice_locked (struct peer * peer , const u8 * msg )
517
517
{
518
518
struct channel_id chanid ;
519
+ struct bitcoin_txid splice_txid ;
519
520
520
- if (!fromwire_splice_locked (msg , & chanid ))
521
+ if (!fromwire_splice_locked (msg , & chanid , & splice_txid ))
521
522
peer_failed_warn (peer -> pps , & peer -> channel_id ,
522
523
"Bad splice_locked %s" , tal_hex (msg , msg ));
523
524
@@ -5180,7 +5181,9 @@ static void peer_reconnect(struct peer *peer,
5180
5181
status_info ("Splice is not confirmed but locked on"
5181
5182
" chain -- resending splice_locked" );
5182
5183
peer_write (peer -> pps ,
5183
- take (towire_splice_locked (NULL , & peer -> channel_id )));
5184
+ take (towire_splice_locked (NULL ,
5185
+ & peer -> channel_id ,
5186
+ & inflight -> outpoint .txid )));
5184
5187
} else if (bitcoin_txid_eq (remote_next_funding ,
5185
5188
& inflight -> outpoint .txid )) {
5186
5189
/* Don't send sigs unless we have theirs */
@@ -5225,7 +5228,9 @@ static void peer_reconnect(struct peer *peer,
5225
5228
status_info ("We have no pending splice but peer"
5226
5229
" expects one; resending splice_lock" );
5227
5230
peer_write (peer -> pps ,
5228
- take (towire_splice_locked (NULL , & peer -> channel_id )));
5231
+ take (towire_splice_locked (NULL ,
5232
+ & peer -> channel_id ,
5233
+ & peer -> channel -> funding .txid )));
5229
5234
}
5230
5235
else {
5231
5236
splice_abort (peer , "next_funding_txid not recognized."
@@ -5619,10 +5624,11 @@ static void handle_funding_depth(struct peer *peer, const u8 *msg)
5619
5624
}
5620
5625
}
5621
5626
5622
- msg = towire_splice_locked (NULL , & peer -> channel_id );
5623
-
5624
5627
peer -> splice_state -> locked_txid = txid ;
5625
5628
5629
+ msg = towire_splice_locked (NULL , & peer -> channel_id ,
5630
+ & txid );
5631
+
5626
5632
peer_write (peer -> pps , take (msg ));
5627
5633
5628
5634
peer -> splice_state -> locked_ready [LOCAL ] = true;
0 commit comments