File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1425,7 +1425,7 @@ impl<SP: Deref> Channel<SP> where
1425
1425
L::Target: Logger
1426
1426
{
1427
1427
let phase = core::mem::replace(&mut self.phase, ChannelPhase::Undefined);
1428
- if let ChannelPhase::UnfundedV2(chan) = phase {
1428
+ let result = if let ChannelPhase::UnfundedV2(chan) = phase {
1429
1429
let logger = WithChannelContext::from(logger, &chan.context, None);
1430
1430
match chan.funding_tx_constructed(signing_session, &&logger) {
1431
1431
Ok((chan, commitment_signed, event)) => {
@@ -1440,7 +1440,10 @@ impl<SP: Deref> Channel<SP> where
1440
1440
} else {
1441
1441
self.phase = phase;
1442
1442
Err(ChannelError::Warn("Got a tx_complete message with no interactive transaction construction expected or in-progress".to_owned()))
1443
- }
1443
+ };
1444
+
1445
+ debug_assert!(!matches!(self.phase, ChannelPhase::Undefined));
1446
+ result
1444
1447
}
1445
1448
}
1446
1449
You can’t perform that action at this time.
0 commit comments