Skip to content

Commit 883142b

Browse files
wpaulinoTheBlueMatt
authored andcommitted
Remove invalid splice debug assertion in funding_tx_constructed
We incorrectly assumed that both commitments must be at the same height, but this is certainly possible whenever updates are proposed in both directions at the same time. Backport of a6ed667
1 parent a282951 commit 883142b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lightning/src/ln/channel.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6213,12 +6213,7 @@ where
62136213
{
62146214
funding.channel_transaction_parameters.funding_outpoint = Some(funding_outpoint);
62156215

6216-
if is_splice {
6217-
debug_assert_eq!(
6218-
holder_commitment_transaction_number,
6219-
self.counterparty_next_commitment_transaction_number,
6220-
);
6221-
} else {
6216+
if !is_splice {
62226217
self.assert_no_commitment_advancement(holder_commitment_transaction_number, "initial commitment_signed");
62236218
self.channel_state = ChannelState::FundingNegotiated(FundingNegotiatedFlags::new());
62246219
}

0 commit comments

Comments
 (0)