We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b9e69 commit 78dbd41Copy full SHA for 78dbd41
lightning/src/ln/channel.rs
@@ -5004,8 +5004,10 @@ impl<SP: Deref> FundedChannel<SP> where
5004
self.context.channel_state, ChannelState::AwaitingChannelReady(_)
5005
));
5006
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);
+ self.context.channel_id = self.context.temporary_channel_id.expect(
+ "temporary_channel_id should be set since unset_funding_info is only called on funded \
5009
+ channels that were unfunded immediately beforehand"
5010
+ );
5011
}
5012
5013
/// Handles a channel_ready message from our peer. If we've already sent our channel_ready
0 commit comments