@@ -2277,8 +2277,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
22772277 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
22782278 funding_tx_broadcast_safe_event_emitted: bool,
22792279
2280- // We track whether we already emitted a `ChannelReady` event.
2281- channel_ready_event_emitted : bool,
2280+ // We track whether we already emitted an initial `ChannelReady` event.
2281+ initial_channel_ready_event_emitted : bool,
22822282
22832283 /// Some if we initiated to shut down the channel.
22842284 local_initiated_shutdown: Option<()>,
@@ -3091,7 +3091,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
30913091
30923092 channel_pending_event_emitted: false,
30933093 funding_tx_broadcast_safe_event_emitted: false,
3094- channel_ready_event_emitted : false,
3094+ initial_channel_ready_event_emitted : false,
30953095
30963096 channel_keys_id,
30973097
@@ -3326,7 +3326,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
33263326
33273327 channel_pending_event_emitted: false,
33283328 funding_tx_broadcast_safe_event_emitted: false,
3329- channel_ready_event_emitted : false,
3329+ initial_channel_ready_event_emitted : false,
33303330
33313331 channel_keys_id,
33323332
@@ -3759,14 +3759,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
37593759 self.channel_pending_event_emitted = true;
37603760 }
37613761
3762- // Checks whether we should emit a `ChannelReady` event.
3763- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3764- self.is_usable() && !self.channel_ready_event_emitted
3762+ // Checks whether we should emit an initial `ChannelReady` event.
3763+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3764+ self.is_usable() && !self.initial_channel_ready_event_emitted
37653765 }
37663766
37673767 // Remembers that we already emitted a `ChannelReady` event.
3768- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3769- self.channel_ready_event_emitted = true;
3768+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3769+ self.initial_channel_ready_event_emitted = true;
37703770 }
37713771
37723772 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11393,7 +11393,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1139311393 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1139411394
1139511395 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11396- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11396+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1139711397 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1139811398
1139911399 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11437,7 +11437,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1143711437 (17, self.context.announcement_sigs_state, required),
1143811438 (19, self.context.latest_inbound_scid_alias, option),
1143911439 (21, self.context.outbound_scid_alias, required),
11440- (23, channel_ready_event_emitted , option),
11440+ (23, initial_channel_ready_event_emitted , option),
1144111441 (25, user_id_high_opt, option),
1144211442 (27, self.context.channel_keys_id, required),
1144311443 (28, holder_max_accepted_htlcs, option),
@@ -11743,7 +11743,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1174311743 let mut latest_inbound_scid_alias = None;
1174411744 let mut outbound_scid_alias = 0u64;
1174511745 let mut channel_pending_event_emitted = None;
11746- let mut channel_ready_event_emitted = None;
11746+ let mut initial_channel_ready_event_emitted = None;
1174711747 let mut funding_tx_broadcast_safe_event_emitted = None;
1174811748
1174911749 let mut user_id_high_opt: Option<u64> = None;
@@ -11796,7 +11796,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1179611796 (17, announcement_sigs_state, required),
1179711797 (19, latest_inbound_scid_alias, option),
1179811798 (21, outbound_scid_alias, required),
11799- (23, channel_ready_event_emitted , option),
11799+ (23, initial_channel_ready_event_emitted , option),
1180011800 (25, user_id_high_opt, option),
1180111801 (27, channel_keys_id, required),
1180211802 (28, holder_max_accepted_htlcs, option),
@@ -12094,7 +12094,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1209412094
1209512095 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1209612096 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12097- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12097+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1209812098
1209912099 channel_keys_id,
1210012100
0 commit comments