Skip to content

Commit 9328962

Browse files
committed
fix Assert state in begin_interactive_...()
1 parent a83e78d commit 9328962

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22312231
) -> Result<Option<InteractiveTxMessageSend>, AbortReason>
22322232
where ES::Target: EntropySource
22332233
{
2234+
debug_assert!(!matches!(self.context.channel_state, ChannelState::NegotiatingFunding(_)));
22342235
debug_assert!(self.interactive_tx_constructor.is_none());
22352236

22362237
let mut funding_inputs = Vec::new();

0 commit comments

Comments
 (0)