Skip to content

Commit 78dbd41

Browse files
committed
f - expect
1 parent c8b9e69 commit 78dbd41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5004,8 +5004,10 @@ impl<SP: Deref> FundedChannel<SP> where
50045004
self.context.channel_state, ChannelState::AwaitingChannelReady(_)
50055005
));
50065006
self.context.channel_transaction_parameters.funding_outpoint = None;
5007-
self.context.channel_id = self.context.temporary_channel_id
5008-
.unwrap_or(self.context.channel_id);
5007+
self.context.channel_id = self.context.temporary_channel_id.expect(
5008+
"temporary_channel_id should be set since unset_funding_info is only called on funded \
5009+
channels that were unfunded immediately beforehand"
5010+
);
50095011
}
50105012

50115013
/// Handles a channel_ready message from our peer. If we've already sent our channel_ready

0 commit comments

Comments
 (0)