File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -5312,11 +5312,7 @@ where
5312
5312
&mut self, funding: &FundingScope, mut closure_reason: ClosureReason,
5313
5313
) -> ShutdownResult {
5314
5314
assert!(!matches!(self.channel_state, ChannelState::ShutdownComplete));
5315
- let pre_funding = matches!(self.channel_state, ChannelState::NegotiatingFunding(_));
5316
- let funded = matches!(self.channel_state, ChannelState::FundingNegotiated(_));
5317
- let awaiting_ready = matches!(self.channel_state, ChannelState::AwaitingChannelReady(_));
5318
- // TODO: allow pre-initial-monitor-storage but post-lock-in (is that a thing) closure?
5319
- assert!(pre_funding || funded || awaiting_ready);
5315
+ assert!(!self.is_funding_broadcast());
5320
5316
5321
5317
let unbroadcasted_batch_funding_txid = self.unbroadcasted_batch_funding_txid(funding);
5322
5318
let unbroadcasted_funding_tx = self.unbroadcasted_funding(funding);
You can’t perform that action at this time.
0 commit comments