Skip to content

Commit e86bfbc

Browse files
committed
splice: Resume splice_locked on reestablish
A new case where `splice_locked` must be sent again on reestablish. This handles the case where `splice_locked` did not complete locally or remotely and must be resumed.
1 parent 28851bf commit e86bfbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

channeld/channeld.c

+7
Original file line numberDiff line numberDiff line change
@@ -5177,6 +5177,13 @@ static void peer_reconnect(struct peer *peer,
51775177
true,
51785178
false,
51795179
true);
5180+
} else if (inflight->is_locked
5181+
&& bitcoin_txid_eq(remote_next_funding,
5182+
&inflight->outpoint.txid)) {
5183+
status_info("Splice is not confirmed but locked on"
5184+
" chain -- resending splice_locked");
5185+
peer_write(peer->pps,
5186+
take(towire_splice_locked(NULL, &peer->channel_id)));
51805187
} else if (bitcoin_txid_eq(remote_next_funding,
51815188
&inflight->outpoint.txid)) {
51825189
/* Don't send sigs unless we have theirs */

0 commit comments

Comments
 (0)