@@ -2428,8 +2428,8 @@ where
24282428 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
24292429 funding_tx_broadcast_safe_event_emitted: bool,
24302430
2431- // We track whether we already emitted a `ChannelReady` event.
2432- channel_ready_event_emitted : bool,
2431+ // We track whether we already emitted an initial `ChannelReady` event.
2432+ initial_channel_ready_event_emitted : bool,
24332433
24342434 /// Some if we initiated to shut down the channel.
24352435 local_initiated_shutdown: Option<()>,
@@ -3272,7 +3272,7 @@ where
32723272
32733273 channel_pending_event_emitted: false,
32743274 funding_tx_broadcast_safe_event_emitted: false,
3275- channel_ready_event_emitted : false,
3275+ initial_channel_ready_event_emitted : false,
32763276
32773277 channel_keys_id,
32783278
@@ -3515,7 +3515,7 @@ where
35153515
35163516 channel_pending_event_emitted: false,
35173517 funding_tx_broadcast_safe_event_emitted: false,
3518- channel_ready_event_emitted : false,
3518+ initial_channel_ready_event_emitted : false,
35193519
35203520 channel_keys_id,
35213521
@@ -3945,14 +3945,14 @@ where
39453945 self.channel_pending_event_emitted = true;
39463946 }
39473947
3948- // Checks whether we should emit a `ChannelReady` event.
3949- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3950- self.is_usable() && !self.channel_ready_event_emitted
3948+ // Checks whether we should emit an initial `ChannelReady` event.
3949+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3950+ self.is_usable() && !self.initial_channel_ready_event_emitted
39513951 }
39523952
39533953 // Remembers that we already emitted a `ChannelReady` event.
3954- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3955- self.channel_ready_event_emitted = true;
3954+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3955+ self.initial_channel_ready_event_emitted = true;
39563956 }
39573957
39583958 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11997,7 +11997,7 @@ where
1199711997 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1199811998
1199911999 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
12000- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
12000+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1200112001 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1200212002
1200312003 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -12041,7 +12041,7 @@ where
1204112041 (17, self.context.announcement_sigs_state, required),
1204212042 (19, self.context.latest_inbound_scid_alias, option),
1204312043 (21, self.context.outbound_scid_alias, required),
12044- (23, channel_ready_event_emitted , option),
12044+ (23, initial_channel_ready_event_emitted , option),
1204512045 (25, user_id_high_opt, option),
1204612046 (27, self.context.channel_keys_id, required),
1204712047 (28, holder_max_accepted_htlcs, option),
@@ -12350,7 +12350,7 @@ where
1235012350 let mut latest_inbound_scid_alias = None;
1235112351 let mut outbound_scid_alias = 0u64;
1235212352 let mut channel_pending_event_emitted = None;
12353- let mut channel_ready_event_emitted = None;
12353+ let mut initial_channel_ready_event_emitted = None;
1235412354 let mut funding_tx_broadcast_safe_event_emitted = None;
1235512355
1235612356 let mut user_id_high_opt: Option<u64> = None;
@@ -12405,7 +12405,7 @@ where
1240512405 (17, announcement_sigs_state, required),
1240612406 (19, latest_inbound_scid_alias, option),
1240712407 (21, outbound_scid_alias, required),
12408- (23, channel_ready_event_emitted , option),
12408+ (23, initial_channel_ready_event_emitted , option),
1240912409 (25, user_id_high_opt, option),
1241012410 (27, channel_keys_id, required),
1241112411 (28, holder_max_accepted_htlcs, option),
@@ -12705,7 +12705,7 @@ where
1270512705
1270612706 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1270712707 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12708- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12708+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1270912709
1271012710 channel_keys_id,
1271112711
0 commit comments