Skip to content

Commit 5fbb07e

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

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
@@ -3648,7 +3648,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
36483648

36493649
fn unset_funding_info(&mut self, funding: &mut FundingScope) {
36503650
debug_assert!(
3651-
matches!(self.channel_state, ChannelState::FundingNegotiated(_))
3651+
matches!(self.channel_state, ChannelState::FundingNegotiated(flags) if !flags.is_their_tx_signatures_sent() && !flags.is_our_tx_signatures_ready())
36523652
|| matches!(self.channel_state, ChannelState::AwaitingChannelReady(_))
36533653
);
36543654
funding.channel_transaction_parameters.funding_outpoint = None;

0 commit comments

Comments
 (0)