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 @@ -5347,11 +5347,7 @@ where
5347
5347
&mut self, funding: &FundingScope, mut closure_reason: ClosureReason,
5348
5348
) -> ShutdownResult {
5349
5349
assert!(!matches!(self.channel_state, ChannelState::ShutdownComplete));
5350
- let pre_funding = matches!(self.channel_state, ChannelState::NegotiatingFunding(_));
5351
- let funded = matches!(self.channel_state, ChannelState::FundingNegotiated(_));
5352
- let awaiting_ready = matches!(self.channel_state, ChannelState::AwaitingChannelReady(_));
5353
- // TODO: allow pre-initial-monitor-storage but post-lock-in (is that a thing) closure?
5354
- assert!(pre_funding || funded || awaiting_ready);
5350
+ assert!(!self.is_funding_broadcast());
5355
5351
5356
5352
let unbroadcasted_batch_funding_txid = self.unbroadcasted_batch_funding_txid(funding);
5357
5353
let unbroadcasted_funding_tx = self.unbroadcasted_funding(funding);
You can’t perform that action at this time.
0 commit comments