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 @@ -1427,7 +1427,7 @@ impl<SP: Deref> Channel<SP> where
1427
1427
L::Target: Logger
1428
1428
{
1429
1429
let phase = core::mem::replace(&mut self.phase, ChannelPhase::Undefined);
1430
- if let ChannelPhase::UnfundedV2(chan) = phase {
1430
+ let result = if let ChannelPhase::UnfundedV2(chan) = phase {
1431
1431
let logger = WithChannelContext::from(logger, &chan.context, None);
1432
1432
match chan.funding_tx_constructed(signing_session, &&logger) {
1433
1433
Ok((chan, commitment_signed, event)) => {
@@ -1442,7 +1442,10 @@ impl<SP: Deref> Channel<SP> where
1442
1442
} else {
1443
1443
self.phase = phase;
1444
1444
Err(ChannelError::Warn("Got a tx_complete message with no interactive transaction construction expected or in-progress".to_owned()))
1445
- }
1445
+ };
1446
+
1447
+ debug_assert!(!matches!(self.phase, ChannelPhase::Undefined));
1448
+ result
1446
1449
}
1447
1450
}
1448
1451
You can’t perform that action at this time.
0 commit comments