@@ -2243,8 +2243,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
22432243 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
22442244 funding_tx_broadcast_safe_event_emitted: bool,
22452245
2246- // We track whether we already emitted a `ChannelReady` event.
2247- channel_ready_event_emitted : bool,
2246+ // We track whether we already emitted an initial `ChannelReady` event.
2247+ initial_channel_ready_event_emitted : bool,
22482248
22492249 /// Some if we initiated to shut down the channel.
22502250 local_initiated_shutdown: Option<()>,
@@ -3053,7 +3053,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
30533053
30543054 channel_pending_event_emitted: false,
30553055 funding_tx_broadcast_safe_event_emitted: false,
3056- channel_ready_event_emitted : false,
3056+ initial_channel_ready_event_emitted : false,
30573057
30583058 channel_keys_id,
30593059
@@ -3290,7 +3290,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
32903290
32913291 channel_pending_event_emitted: false,
32923292 funding_tx_broadcast_safe_event_emitted: false,
3293- channel_ready_event_emitted : false,
3293+ initial_channel_ready_event_emitted : false,
32943294
32953295 channel_keys_id,
32963296
@@ -3724,14 +3724,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
37243724 self.channel_pending_event_emitted = true;
37253725 }
37263726
3727- // Checks whether we should emit a `ChannelReady` event.
3728- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3729- self.is_usable() && !self.channel_ready_event_emitted
3727+ // Checks whether we should emit an initial `ChannelReady` event.
3728+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3729+ self.is_usable() && !self.initial_channel_ready_event_emitted
37303730 }
37313731
37323732 // Remembers that we already emitted a `ChannelReady` event.
3733- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3734- self.channel_ready_event_emitted = true;
3733+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3734+ self.initial_channel_ready_event_emitted = true;
37353735 }
37363736
37373737 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11209,7 +11209,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1120911209 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1121011210
1121111211 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11212- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11212+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1121311213 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1121411214
1121511215 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11253,7 +11253,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1125311253 (17, self.context.announcement_sigs_state, required),
1125411254 (19, self.context.latest_inbound_scid_alias, option),
1125511255 (21, self.context.outbound_scid_alias, required),
11256- (23, channel_ready_event_emitted , option),
11256+ (23, initial_channel_ready_event_emitted , option),
1125711257 (25, user_id_high_opt, option),
1125811258 (27, self.context.channel_keys_id, required),
1125911259 (28, holder_max_accepted_htlcs, option),
@@ -11558,7 +11558,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1155811558 let mut latest_inbound_scid_alias = None;
1155911559 let mut outbound_scid_alias = 0u64;
1156011560 let mut channel_pending_event_emitted = None;
11561- let mut channel_ready_event_emitted = None;
11561+ let mut initial_channel_ready_event_emitted = None;
1156211562 let mut funding_tx_broadcast_safe_event_emitted = None;
1156311563
1156411564 let mut user_id_high_opt: Option<u64> = None;
@@ -11609,7 +11609,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1160911609 (17, announcement_sigs_state, required),
1161011610 (19, latest_inbound_scid_alias, option),
1161111611 (21, outbound_scid_alias, required),
11612- (23, channel_ready_event_emitted , option),
11612+ (23, initial_channel_ready_event_emitted , option),
1161311613 (25, user_id_high_opt, option),
1161411614 (27, channel_keys_id, required),
1161511615 (28, holder_max_accepted_htlcs, option),
@@ -11910,7 +11910,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1191011910
1191111911 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1191211912 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11913- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11913+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1191411914
1191511915 channel_keys_id,
1191611916
0 commit comments