@@ -2236,8 +2236,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
22362236 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
22372237 funding_tx_broadcast_safe_event_emitted: bool,
22382238
2239- // We track whether we already emitted a `ChannelReady` event.
2240- channel_ready_event_emitted : bool,
2239+ // We track whether we already emitted an initial `ChannelReady` event.
2240+ initial_channel_ready_event_emitted : bool,
22412241
22422242 /// Some if we initiated to shut down the channel.
22432243 local_initiated_shutdown: Option<()>,
@@ -3045,7 +3045,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
30453045
30463046 channel_pending_event_emitted: false,
30473047 funding_tx_broadcast_safe_event_emitted: false,
3048- channel_ready_event_emitted : false,
3048+ initial_channel_ready_event_emitted : false,
30493049
30503050 channel_keys_id,
30513051
@@ -3281,7 +3281,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
32813281
32823282 channel_pending_event_emitted: false,
32833283 funding_tx_broadcast_safe_event_emitted: false,
3284- channel_ready_event_emitted : false,
3284+ initial_channel_ready_event_emitted : false,
32853285
32863286 channel_keys_id,
32873287
@@ -3715,14 +3715,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
37153715 self.channel_pending_event_emitted = true;
37163716 }
37173717
3718- // Checks whether we should emit a `ChannelReady` event.
3719- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3720- self.is_usable() && !self.channel_ready_event_emitted
3718+ // Checks whether we should emit an initial `ChannelReady` event.
3719+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3720+ self.is_usable() && !self.initial_channel_ready_event_emitted
37213721 }
37223722
37233723 // Remembers that we already emitted a `ChannelReady` event.
3724- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3725- self.channel_ready_event_emitted = true;
3724+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3725+ self.initial_channel_ready_event_emitted = true;
37263726 }
37273727
37283728 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11197,7 +11197,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1119711197 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1119811198
1119911199 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11200- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11200+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1120111201 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1120211202
1120311203 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11241,7 +11241,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
1124111241 (17, self.context.announcement_sigs_state, required),
1124211242 (19, self.context.latest_inbound_scid_alias, option),
1124311243 (21, self.context.outbound_scid_alias, required),
11244- (23, channel_ready_event_emitted , option),
11244+ (23, initial_channel_ready_event_emitted , option),
1124511245 (25, user_id_high_opt, option),
1124611246 (27, self.context.channel_keys_id, required),
1124711247 (28, holder_max_accepted_htlcs, option),
@@ -11545,7 +11545,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1154511545 let mut latest_inbound_scid_alias = None;
1154611546 let mut outbound_scid_alias = 0u64;
1154711547 let mut channel_pending_event_emitted = None;
11548- let mut channel_ready_event_emitted = None;
11548+ let mut initial_channel_ready_event_emitted = None;
1154911549 let mut funding_tx_broadcast_safe_event_emitted = None;
1155011550
1155111551 let mut user_id_high_opt: Option<u64> = None;
@@ -11595,7 +11595,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1159511595 (17, announcement_sigs_state, required),
1159611596 (19, latest_inbound_scid_alias, option),
1159711597 (21, outbound_scid_alias, required),
11598- (23, channel_ready_event_emitted , option),
11598+ (23, initial_channel_ready_event_emitted , option),
1159911599 (25, user_id_high_opt, option),
1160011600 (27, channel_keys_id, required),
1160111601 (28, holder_max_accepted_htlcs, option),
@@ -11894,7 +11894,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
1189411894
1189511895 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1189611896 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11897- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11897+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1189811898
1189911899 channel_keys_id,
1190011900
0 commit comments