@@ -2295,8 +2295,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
22952295 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
22962296 funding_tx_broadcast_safe_event_emitted: bool,
22972297
2298- // We track whether we already emitted a `ChannelReady` event.
2299- channel_ready_event_emitted : bool,
2298+ // We track whether we already emitted an initial `ChannelReady` event.
2299+ initial_channel_ready_event_emitted : bool,
23002300
23012301 /// Some if we initiated to shut down the channel.
23022302 local_initiated_shutdown: Option<()>,
@@ -3110,7 +3110,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
31103110
31113111 channel_pending_event_emitted: false,
31123112 funding_tx_broadcast_safe_event_emitted: false,
3113- channel_ready_event_emitted : false,
3113+ initial_channel_ready_event_emitted : false,
31143114
31153115 channel_keys_id,
31163116
@@ -3352,7 +3352,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
33523352
33533353 channel_pending_event_emitted: false,
33543354 funding_tx_broadcast_safe_event_emitted: false,
3355- channel_ready_event_emitted : false,
3355+ initial_channel_ready_event_emitted : false,
33563356
33573357 channel_keys_id,
33583358
@@ -3771,14 +3771,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
37713771 self.channel_pending_event_emitted = true;
37723772 }
37733773
3774- // Checks whether we should emit a `ChannelReady` event.
3775- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3776- self.is_usable() && !self.channel_ready_event_emitted
3774+ // Checks whether we should emit an initial `ChannelReady` event.
3775+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3776+ self.is_usable() && !self.initial_channel_ready_event_emitted
37773777 }
37783778
37793779 // Remembers that we already emitted a `ChannelReady` event.
3780- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3781- self.channel_ready_event_emitted = true;
3780+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3781+ self.initial_channel_ready_event_emitted = true;
37823782 }
37833783
37843784 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11633,7 +11633,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1163311633 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1163411634
1163511635 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11636- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11636+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1163711637 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1163811638
1163911639 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11677,7 +11677,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1167711677 (17, self.context.announcement_sigs_state, required),
1167811678 (19, self.context.latest_inbound_scid_alias, option),
1167911679 (21, self.context.outbound_scid_alias, required),
11680- (23, channel_ready_event_emitted , option),
11680+ (23, initial_channel_ready_event_emitted , option),
1168111681 (25, user_id_high_opt, option),
1168211682 (27, self.context.channel_keys_id, required),
1168311683 (28, holder_max_accepted_htlcs, option),
@@ -11984,7 +11984,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1198411984 let mut latest_inbound_scid_alias = None;
1198511985 let mut outbound_scid_alias = 0u64;
1198611986 let mut channel_pending_event_emitted = None;
11987- let mut channel_ready_event_emitted = None;
11987+ let mut initial_channel_ready_event_emitted = None;
1198811988 let mut funding_tx_broadcast_safe_event_emitted = None;
1198911989
1199011990 let mut user_id_high_opt: Option<u64> = None;
@@ -12039,7 +12039,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1203912039 (17, announcement_sigs_state, required),
1204012040 (19, latest_inbound_scid_alias, option),
1204112041 (21, outbound_scid_alias, required),
12042- (23, channel_ready_event_emitted , option),
12042+ (23, initial_channel_ready_event_emitted , option),
1204312043 (25, user_id_high_opt, option),
1204412044 (27, channel_keys_id, required),
1204512045 (28, holder_max_accepted_htlcs, option),
@@ -12339,7 +12339,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1233912339
1234012340 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1234112341 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12342- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12342+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1234312343
1234412344 channel_keys_id,
1234512345
0 commit comments