Skip to content

Commit c51968b

Browse files
committed
fixup! splice: Update to Eclair style of reestablish
1 parent ab15331 commit c51968b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

channeld/channeld.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5791,8 +5791,8 @@ static void peer_reconnect(struct peer *peer,
57915791
* `commitment_signed`.
57925792
*/
57935793
if (next_commitment_number == peer->next_index[REMOTE] - 1) {
5794-
/* We completed opening, we don't re-transmit that one! */
5795-
if (next_commitment_number == 0)
5794+
/* We completed opening, we don't re-transmit that one unless negotiating a splice. */
5795+
if (remote_next_funding == NULL && next_commitment_number == 0)
57965796
peer_failed_err(peer->pps,
57975797
&peer->channel_id,
57985798
"bad reestablish commitment_number: %"

0 commit comments

Comments
 (0)