@@ -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.
@@ -11632,7 +11632,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1163211632 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1163311633
1163411634 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11635- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11635+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1163611636 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1163711637
1163811638 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11676,7 +11676,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1167611676 (17, self.context.announcement_sigs_state, required),
1167711677 (19, self.context.latest_inbound_scid_alias, option),
1167811678 (21, self.context.outbound_scid_alias, required),
11679- (23, channel_ready_event_emitted , option),
11679+ (23, initial_channel_ready_event_emitted , option),
1168011680 (25, user_id_high_opt, option),
1168111681 (27, self.context.channel_keys_id, required),
1168211682 (28, holder_max_accepted_htlcs, option),
@@ -11983,7 +11983,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1198311983 let mut latest_inbound_scid_alias = None;
1198411984 let mut outbound_scid_alias = 0u64;
1198511985 let mut channel_pending_event_emitted = None;
11986- let mut channel_ready_event_emitted = None;
11986+ let mut initial_channel_ready_event_emitted = None;
1198711987 let mut funding_tx_broadcast_safe_event_emitted = None;
1198811988
1198911989 let mut user_id_high_opt: Option<u64> = None;
@@ -12038,7 +12038,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1203812038 (17, announcement_sigs_state, required),
1203912039 (19, latest_inbound_scid_alias, option),
1204012040 (21, outbound_scid_alias, required),
12041- (23, channel_ready_event_emitted , option),
12041+ (23, initial_channel_ready_event_emitted , option),
1204212042 (25, user_id_high_opt, option),
1204312043 (27, channel_keys_id, required),
1204412044 (28, holder_max_accepted_htlcs, option),
@@ -12338,7 +12338,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1233812338
1233912339 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1234012340 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12341- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12341+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1234212342
1234312343 channel_keys_id,
1234412344
0 commit comments