Skip to content

Commit a6ed667

Browse files
committed
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.
1 parent c2b15c2 commit a6ed667

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6199,12 +6199,7 @@ where
61996199
{
62006200
funding.channel_transaction_parameters.funding_outpoint = Some(funding_outpoint);
62016201

6202-
if is_splice {
6203-
debug_assert_eq!(
6204-
holder_commitment_transaction_number,
6205-
self.counterparty_next_commitment_transaction_number,
6206-
);
6207-
} else {
6202+
if !is_splice {
62086203
self.assert_no_commitment_advancement(holder_commitment_transaction_number, "initial commitment_signed");
62096204
self.channel_state = ChannelState::FundingNegotiated(FundingNegotiatedFlags::new());
62106205
}

0 commit comments

Comments
 (0)