Skip to content

Commit 981086f

Browse files
committed
fix Assert state in begin_interactive_...()
1 parent 9c6d6c9 commit 981086f

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
@@ -2233,6 +2233,7 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
22332233
) -> Result<Option<InteractiveTxMessageSend>, AbortReason>
22342234
where ES::Target: EntropySource
22352235
{
2236+
debug_assert!(!matches!(self.context.channel_state, ChannelState::NegotiatingFunding(_)));
22362237
debug_assert!(self.interactive_tx_constructor.is_none());
22372238

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

0 commit comments

Comments
 (0)