@@ -2135,8 +2135,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
21352135 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
21362136 funding_tx_broadcast_safe_event_emitted: bool,
21372137
2138- // We track whether we already emitted a `ChannelReady` event.
2139- channel_ready_event_emitted : bool,
2138+ // We track whether we already emitted an initial `ChannelReady` event.
2139+ initial_channel_ready_event_emitted : bool,
21402140
21412141 /// Some if we initiated to shut down the channel.
21422142 local_initiated_shutdown: Option<()>,
@@ -2944,7 +2944,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
29442944
29452945 channel_pending_event_emitted: false,
29462946 funding_tx_broadcast_safe_event_emitted: false,
2947- channel_ready_event_emitted : false,
2947+ initial_channel_ready_event_emitted : false,
29482948
29492949 channel_keys_id,
29502950
@@ -3180,7 +3180,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
31803180
31813181 channel_pending_event_emitted: false,
31823182 funding_tx_broadcast_safe_event_emitted: false,
3183- channel_ready_event_emitted : false,
3183+ initial_channel_ready_event_emitted : false,
31843184
31853185 channel_keys_id,
31863186
@@ -3590,14 +3590,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
35903590 self.channel_pending_event_emitted = true;
35913591 }
35923592
3593- // Checks whether we should emit a `ChannelReady` event.
3594- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3595- self.is_usable() && !self.channel_ready_event_emitted
3593+ // Checks whether we should emit an initial `ChannelReady` event.
3594+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3595+ self.is_usable() && !self.initial_channel_ready_event_emitted
35963596 }
35973597
35983598 // Remembers that we already emitted a `ChannelReady` event.
3599- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3600- self.channel_ready_event_emitted = true;
3599+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3600+ self.initial_channel_ready_event_emitted = true;
36013601 }
36023602
36033603 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11037,7 +11037,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1103711037 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1103811038
1103911039 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11040- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11040+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1104111041 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1104211042
1104311043 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11081,7 +11081,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1108111081 (17, self.context.announcement_sigs_state, required),
1108211082 (19, self.context.latest_inbound_scid_alias, option),
1108311083 (21, self.context.outbound_scid_alias, required),
11084- (23, channel_ready_event_emitted , option),
11084+ (23, initial_channel_ready_event_emitted , option),
1108511085 (25, user_id_high_opt, option),
1108611086 (27, self.context.channel_keys_id, required),
1108711087 (28, holder_max_accepted_htlcs, option),
@@ -11368,7 +11368,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1136811368 let mut latest_inbound_scid_alias = None;
1136911369 let mut outbound_scid_alias = 0u64;
1137011370 let mut channel_pending_event_emitted = None;
11371- let mut channel_ready_event_emitted = None;
11371+ let mut initial_channel_ready_event_emitted = None;
1137211372 let mut funding_tx_broadcast_safe_event_emitted = None;
1137311373
1137411374 let mut user_id_high_opt: Option<u64> = None;
@@ -11418,7 +11418,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1141811418 (17, announcement_sigs_state, required),
1141911419 (19, latest_inbound_scid_alias, option),
1142011420 (21, outbound_scid_alias, required),
11421- (23, channel_ready_event_emitted , option),
11421+ (23, initial_channel_ready_event_emitted , option),
1142211422 (25, user_id_high_opt, option),
1142311423 (27, channel_keys_id, required),
1142411424 (28, holder_max_accepted_htlcs, option),
@@ -11713,7 +11713,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1171311713
1171411714 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1171511715 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11716- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11716+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1171711717
1171811718 channel_keys_id,
1171911719
0 commit comments