File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5177,12 +5177,23 @@ static void peer_reconnect(struct peer *peer,
5177
5177
} else if (inflight -> is_locked
5178
5178
&& bitcoin_txid_eq (remote_next_funding ,
5179
5179
& inflight -> outpoint .txid )) {
5180
+ if (!bitcoin_txid_eq (& inflight -> outpoint .txid ,
5181
+ & peer -> splice_state -> locked_txid ))
5182
+ peer_failed_err (peer -> pps ,
5183
+ & peer -> channel_id ,
5184
+ "Invalid splice was resumed %s,"
5185
+ " should be %s" ,
5186
+ fmt_bitcoin_txid (tmpctx ,
5187
+ & inflight -> outpoint .txid ),
5188
+ fmt_bitcoin_txid (tmpctx ,
5189
+ & peer -> splice_state -> locked_txid ));
5180
5190
status_info ("Splice is not confirmed but locked on"
5181
5191
" chain -- resending splice_locked" );
5182
5192
peer_write (peer -> pps ,
5183
5193
take (towire_splice_locked (NULL ,
5184
- & peer -> channel_id ,
5185
- & inflight -> outpoint .txid )));
5194
+ & peer -> channel_id ,
5195
+ & inflight -> outpoint .txid )));
5196
+ peer -> splice_state -> locked_ready [LOCAL ] = true;
5186
5197
} else if (bitcoin_txid_eq (remote_next_funding ,
5187
5198
& inflight -> outpoint .txid )) {
5188
5199
/* Don't send sigs unless we have theirs */
You can’t perform that action at this time.
0 commit comments