@@ -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.
@@ -11388,7 +11388,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1138811388 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1138911389
1139011390 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11391- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11391+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1139211392 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1139311393
1139411394 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11432,7 +11432,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1143211432 (17, self.context.announcement_sigs_state, required),
1143311433 (19, self.context.latest_inbound_scid_alias, option),
1143411434 (21, self.context.outbound_scid_alias, required),
11435- (23, channel_ready_event_emitted , option),
11435+ (23, initial_channel_ready_event_emitted , option),
1143611436 (25, user_id_high_opt, option),
1143711437 (27, self.context.channel_keys_id, required),
1143811438 (28, holder_max_accepted_htlcs, option),
@@ -11738,7 +11738,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1173811738 let mut latest_inbound_scid_alias = None;
1173911739 let mut outbound_scid_alias = 0u64;
1174011740 let mut channel_pending_event_emitted = None;
11741- let mut channel_ready_event_emitted = None;
11741+ let mut initial_channel_ready_event_emitted = None;
1174211742 let mut funding_tx_broadcast_safe_event_emitted = None;
1174311743
1174411744 let mut user_id_high_opt: Option<u64> = None;
@@ -11791,7 +11791,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1179111791 (17, announcement_sigs_state, required),
1179211792 (19, latest_inbound_scid_alias, option),
1179311793 (21, outbound_scid_alias, required),
11794- (23, channel_ready_event_emitted , option),
11794+ (23, initial_channel_ready_event_emitted , option),
1179511795 (25, user_id_high_opt, option),
1179611796 (27, channel_keys_id, required),
1179711797 (28, holder_max_accepted_htlcs, option),
@@ -12089,7 +12089,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1208912089
1209012090 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1209112091 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12092- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12092+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1209312093
1209412094 channel_keys_id,
1209512095
0 commit comments