@@ -2134,8 +2134,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
21342134 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
21352135 funding_tx_broadcast_safe_event_emitted: bool,
21362136
2137- // We track whether we already emitted a `ChannelReady` event.
2138- channel_ready_event_emitted : bool,
2137+ // We track whether we already emitted an initial `ChannelReady` event.
2138+ initial_channel_ready_event_emitted : bool,
21392139
21402140 /// Some if we initiated to shut down the channel.
21412141 local_initiated_shutdown: Option<()>,
@@ -2943,7 +2943,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
29432943
29442944 channel_pending_event_emitted: false,
29452945 funding_tx_broadcast_safe_event_emitted: false,
2946- channel_ready_event_emitted : false,
2946+ initial_channel_ready_event_emitted : false,
29472947
29482948 channel_keys_id,
29492949
@@ -3179,7 +3179,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
31793179
31803180 channel_pending_event_emitted: false,
31813181 funding_tx_broadcast_safe_event_emitted: false,
3182- channel_ready_event_emitted : false,
3182+ initial_channel_ready_event_emitted : false,
31833183
31843184 channel_keys_id,
31853185
@@ -3589,14 +3589,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
35893589 self.channel_pending_event_emitted = true;
35903590 }
35913591
3592- // Checks whether we should emit a `ChannelReady` event.
3593- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3594- self.is_usable() && !self.channel_ready_event_emitted
3592+ // Checks whether we should emit an initial `ChannelReady` event.
3593+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3594+ self.is_usable() && !self.initial_channel_ready_event_emitted
35953595 }
35963596
35973597 // Remembers that we already emitted a `ChannelReady` event.
3598- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3599- self.channel_ready_event_emitted = true;
3598+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3599+ self.initial_channel_ready_event_emitted = true;
36003600 }
36013601
36023602 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11043,7 +11043,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1104311043 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1104411044
1104511045 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11046- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11046+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1104711047 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1104811048
1104911049 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11087,7 +11087,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1108711087 (17, self.context.announcement_sigs_state, required),
1108811088 (19, self.context.latest_inbound_scid_alias, option),
1108911089 (21, self.context.outbound_scid_alias, required),
11090- (23, channel_ready_event_emitted , option),
11090+ (23, initial_channel_ready_event_emitted , option),
1109111091 (25, user_id_high_opt, option),
1109211092 (27, self.context.channel_keys_id, required),
1109311093 (28, holder_max_accepted_htlcs, option),
@@ -11374,7 +11374,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1137411374 let mut latest_inbound_scid_alias = None;
1137511375 let mut outbound_scid_alias = 0u64;
1137611376 let mut channel_pending_event_emitted = None;
11377- let mut channel_ready_event_emitted = None;
11377+ let mut initial_channel_ready_event_emitted = None;
1137811378 let mut funding_tx_broadcast_safe_event_emitted = None;
1137911379
1138011380 let mut user_id_high_opt: Option<u64> = None;
@@ -11424,7 +11424,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1142411424 (17, announcement_sigs_state, required),
1142511425 (19, latest_inbound_scid_alias, option),
1142611426 (21, outbound_scid_alias, required),
11427- (23, channel_ready_event_emitted , option),
11427+ (23, initial_channel_ready_event_emitted , option),
1142811428 (25, user_id_high_opt, option),
1142911429 (27, channel_keys_id, required),
1143011430 (28, holder_max_accepted_htlcs, option),
@@ -11719,7 +11719,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1171911719
1172011720 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1172111721 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11722- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11722+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1172311723
1172411724 channel_keys_id,
1172511725
0 commit comments