Skip to content

Commit 5cd15df

Browse files
committed
f debug assert we don't unset funding if our or their tx signatures sent
1 parent cc82bde commit 5cd15df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3577,7 +3577,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
35773577

35783578
fn unset_funding_info(&mut self, funding: &mut FundingScope) {
35793579
debug_assert!(
3580-
matches!(self.channel_state, ChannelState::FundingNegotiated(_))
3580+
matches!(self.channel_state, ChannelState::FundingNegotiated(flags) if !flags.is_their_tx_signatures_sent() && !flags.is_our_tx_signatures_ready())
35813581
|| matches!(self.channel_state, ChannelState::AwaitingChannelReady(_))
35823582
);
35833583
funding.channel_transaction_parameters.funding_outpoint = None;

0 commit comments

Comments
 (0)