@@ -3537,7 +3537,7 @@ static void resume_splice_negotiation(struct peer *peer,
35373537 msg = towire_channeld_update_inflight (NULL , current_psbt ,
35383538 their_commit -> tx ,
35393539 & their_commit -> commit_signature ,
3540- inflight -> is_locked );
3540+ inflight -> locked_scid );
35413541 wire_sync_write (MASTER_FD , take (msg ));
35423542 }
35433543
@@ -3608,7 +3608,7 @@ static void resume_splice_negotiation(struct peer *peer,
36083608 && send_signature ) {
36093609 msg = towire_channeld_update_inflight (NULL , current_psbt ,
36103610 NULL , NULL ,
3611- inflight -> is_locked );
3611+ inflight -> locked_scid );
36123612 wire_sync_write (MASTER_FD , take (msg ));
36133613
36143614 msg = towire_channeld_splice_sending_sigs (tmpctx , & final_txid );
@@ -3778,7 +3778,7 @@ static void resume_splice_negotiation(struct peer *peer,
37783778 /* We let core validate our peer's signatures are correct. */
37793779 msg = towire_channeld_update_inflight (NULL , current_psbt , NULL ,
37803780 NULL ,
3781- inflight -> is_locked );
3781+ inflight -> locked_scid );
37823782 wire_sync_write (MASTER_FD , take (msg ));
37833783 }
37843784
@@ -4011,7 +4011,7 @@ static void splice_accepter(struct peer *peer, const u8 *inmsg)
40114011 new_inflight -> last_tx = NULL ;
40124012 new_inflight -> i_am_initiator = false;
40134013 new_inflight -> force_sign_first = peer -> splicing -> force_sign_first ;
4014- new_inflight -> is_locked = false ;
4014+ new_inflight -> locked_scid = NULL ;
40154015
40164016 current_push_val = relative_splice_balance_fundee (peer , our_role ,ictx -> current_psbt ,
40174017 outpoint .n , splice_funding_index );
@@ -4233,7 +4233,7 @@ static void splice_initiator_user_finalized(struct peer *peer)
42334233 new_inflight -> last_tx = NULL ;
42344234 new_inflight -> i_am_initiator = true;
42354235 new_inflight -> force_sign_first = peer -> splicing -> force_sign_first ;
4236- new_inflight -> is_locked = false ;
4236+ new_inflight -> locked_scid = NULL ;
42374237
42384238 audit_psbt (ictx -> current_psbt , ictx -> current_psbt );
42394239
@@ -4265,7 +4265,7 @@ static void splice_initiator_user_finalized(struct peer *peer)
42654265 outmsg = towire_channeld_update_inflight (NULL , new_inflight -> psbt ,
42664266 their_commit -> tx ,
42674267 & their_commit -> commit_signature ,
4268- new_inflight -> is_locked );
4268+ new_inflight -> locked_scid );
42694269 wire_sync_write (MASTER_FD , take (outmsg ));
42704270
42714271 sign_first = do_i_sign_first (peer , new_inflight -> psbt , our_role ,
@@ -4459,7 +4459,7 @@ static void splice_initiator_user_signed(struct peer *peer, const u8 *inmsg)
44594459 outmsg = towire_channeld_update_inflight (NULL , inflight -> psbt ,
44604460 inflight -> last_tx ,
44614461 & inflight -> last_sig ,
4462- inflight -> is_locked );
4462+ inflight -> locked_scid );
44634463
44644464 wire_sync_write (MASTER_FD , take (outmsg ));
44654465
@@ -5791,13 +5791,13 @@ static void handle_funding_depth(struct peer *peer, const u8 *msg)
57915791 " inflights to"
57925792 "match, %s" ,
57935793 fmt_bitcoin_txid (tmpctx , & txid ));
5794- inflight -> is_locked = true ;
5794+ inflight -> locked_scid = tal_steal ( inflight , scid ) ;
57955795 assert (inflight -> psbt );
57965796 msg = towire_channeld_update_inflight (NULL ,
57975797 inflight -> psbt ,
57985798 NULL ,
57995799 NULL ,
5800- inflight -> is_locked );
5800+ inflight -> locked_scid );
58015801 wire_sync_write (MASTER_FD , take (msg ));
58025802 inflight_match = inflight ;
58035803 }
@@ -6405,7 +6405,7 @@ static void init_channel(struct peer *peer)
64056405
64066406 found_locked_inflight = false;
64076407 for (size_t i = 0 ; i < tal_count (peer -> splice_state -> inflights ); i ++ ) {
6408- if (peer -> splice_state -> inflights [i ]-> is_locked ) {
6408+ if (peer -> splice_state -> inflights [i ]-> locked_scid ) {
64096409 if (found_locked_inflight )
64106410 status_failed (STATUS_FAIL_INTERNAL_ERROR ,
64116411 "There should never be two splice"
@@ -6414,6 +6414,7 @@ static void init_channel(struct peer *peer)
64146414 fmt_bitcoin_txid (tmpctx , & peer -> splice_state -> locked_txid ),
64156415 fmt_bitcoin_txid (tmpctx , & peer -> splice_state -> inflights [i ]-> outpoint .txid ));
64166416 peer -> splice_state -> locked_txid = peer -> splice_state -> inflights [i ]-> outpoint .txid ;
6417+ peer -> splice_state -> short_channel_id = * peer -> splice_state -> inflights [i ]-> locked_scid ;
64176418 found_locked_inflight = true;
64186419 }
64196420 }
0 commit comments