@@ -2244,8 +2244,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
22442244 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
22452245 funding_tx_broadcast_safe_event_emitted: bool,
22462246
2247- // We track whether we already emitted a `ChannelReady` event.
2248- channel_ready_event_emitted : bool,
2247+ // We track whether we already emitted an initial `ChannelReady` event.
2248+ initial_channel_ready_event_emitted : bool,
22492249
22502250 /// Some if we initiated to shut down the channel.
22512251 local_initiated_shutdown: Option<()>,
@@ -3054,7 +3054,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
30543054
30553055 channel_pending_event_emitted: false,
30563056 funding_tx_broadcast_safe_event_emitted: false,
3057- channel_ready_event_emitted : false,
3057+ initial_channel_ready_event_emitted : false,
30583058
30593059 channel_keys_id,
30603060
@@ -3291,7 +3291,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
32913291
32923292 channel_pending_event_emitted: false,
32933293 funding_tx_broadcast_safe_event_emitted: false,
3294- channel_ready_event_emitted : false,
3294+ initial_channel_ready_event_emitted : false,
32953295
32963296 channel_keys_id,
32973297
@@ -3725,14 +3725,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
37253725 self.channel_pending_event_emitted = true;
37263726 }
37273727
3728- // Checks whether we should emit a `ChannelReady` event.
3729- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3730- self.is_usable() && !self.channel_ready_event_emitted
3728+ // Checks whether we should emit an initial `ChannelReady` event.
3729+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3730+ self.is_usable() && !self.initial_channel_ready_event_emitted
37313731 }
37323732
37333733 // Remembers that we already emitted a `ChannelReady` event.
3734- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3735- self.channel_ready_event_emitted = true;
3734+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3735+ self.initial_channel_ready_event_emitted = true;
37363736 }
37373737
37383738 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11210,7 +11210,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1121011210 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1121111211
1121211212 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11213- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11213+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1121411214 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1121511215
1121611216 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11254,7 +11254,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1125411254 (17, self.context.announcement_sigs_state, required),
1125511255 (19, self.context.latest_inbound_scid_alias, option),
1125611256 (21, self.context.outbound_scid_alias, required),
11257- (23, channel_ready_event_emitted , option),
11257+ (23, initial_channel_ready_event_emitted , option),
1125811258 (25, user_id_high_opt, option),
1125911259 (27, self.context.channel_keys_id, required),
1126011260 (28, holder_max_accepted_htlcs, option),
@@ -11559,7 +11559,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1155911559 let mut latest_inbound_scid_alias = None;
1156011560 let mut outbound_scid_alias = 0u64;
1156111561 let mut channel_pending_event_emitted = None;
11562- let mut channel_ready_event_emitted = None;
11562+ let mut initial_channel_ready_event_emitted = None;
1156311563 let mut funding_tx_broadcast_safe_event_emitted = None;
1156411564
1156511565 let mut user_id_high_opt: Option<u64> = None;
@@ -11610,7 +11610,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1161011610 (17, announcement_sigs_state, required),
1161111611 (19, latest_inbound_scid_alias, option),
1161211612 (21, outbound_scid_alias, required),
11613- (23, channel_ready_event_emitted , option),
11613+ (23, initial_channel_ready_event_emitted , option),
1161411614 (25, user_id_high_opt, option),
1161511615 (27, channel_keys_id, required),
1161611616 (28, holder_max_accepted_htlcs, option),
@@ -11911,7 +11911,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1191111911
1191211912 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1191311913 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11914- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11914+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1191511915
1191611916 channel_keys_id,
1191711917
0 commit comments