@@ -2440,8 +2440,8 @@ where
24402440 // We track whether we already emitted a `FundingTxBroadcastSafe` event.
24412441 funding_tx_broadcast_safe_event_emitted: bool,
24422442
2443- // We track whether we already emitted a `ChannelReady` event.
2444- channel_ready_event_emitted : bool,
2443+ // We track whether we already emitted an initial `ChannelReady` event.
2444+ initial_channel_ready_event_emitted : bool,
24452445
24462446 /// Some if we initiated to shut down the channel.
24472447 local_initiated_shutdown: Option<()>,
@@ -3288,7 +3288,7 @@ where
32883288
32893289 channel_pending_event_emitted: false,
32903290 funding_tx_broadcast_safe_event_emitted: false,
3291- channel_ready_event_emitted : false,
3291+ initial_channel_ready_event_emitted : false,
32923292
32933293 channel_keys_id,
32943294
@@ -3531,7 +3531,7 @@ where
35313531
35323532 channel_pending_event_emitted: false,
35333533 funding_tx_broadcast_safe_event_emitted: false,
3534- channel_ready_event_emitted : false,
3534+ initial_channel_ready_event_emitted : false,
35353535
35363536 channel_keys_id,
35373537
@@ -3959,14 +3959,14 @@ where
39593959 self.channel_pending_event_emitted = true;
39603960 }
39613961
3962- // Checks whether we should emit a `ChannelReady` event.
3963- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3964- self.is_usable() && !self.channel_ready_event_emitted
3962+ // Checks whether we should emit an initial `ChannelReady` event.
3963+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3964+ self.is_usable() && !self.initial_channel_ready_event_emitted
39653965 }
39663966
39673967 // Remembers that we already emitted a `ChannelReady` event.
3968- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3969- self.channel_ready_event_emitted = true;
3968+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3969+ self.initial_channel_ready_event_emitted = true;
39703970 }
39713971
39723972 // Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -12050,7 +12050,7 @@ where
1205012050 { Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
1205112051
1205212052 let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
12053- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
12053+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
1205412054 let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
1205512055
1205612056 // `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -12094,7 +12094,7 @@ where
1209412094 (17, self.context.announcement_sigs_state, required),
1209512095 (19, self.context.latest_inbound_scid_alias, option),
1209612096 (21, self.context.outbound_scid_alias, required),
12097- (23, channel_ready_event_emitted , option),
12097+ (23, initial_channel_ready_event_emitted , option),
1209812098 (25, user_id_high_opt, option),
1209912099 (27, self.context.channel_keys_id, required),
1210012100 (28, holder_max_accepted_htlcs, option),
@@ -12403,7 +12403,7 @@ where
1240312403 let mut latest_inbound_scid_alias = None;
1240412404 let mut outbound_scid_alias = 0u64;
1240512405 let mut channel_pending_event_emitted = None;
12406- let mut channel_ready_event_emitted = None;
12406+ let mut initial_channel_ready_event_emitted = None;
1240712407 let mut funding_tx_broadcast_safe_event_emitted = None;
1240812408
1240912409 let mut user_id_high_opt: Option<u64> = None;
@@ -12458,7 +12458,7 @@ where
1245812458 (17, announcement_sigs_state, required),
1245912459 (19, latest_inbound_scid_alias, option),
1246012460 (21, outbound_scid_alias, required),
12461- (23, channel_ready_event_emitted , option),
12461+ (23, initial_channel_ready_event_emitted , option),
1246212462 (25, user_id_high_opt, option),
1246312463 (27, channel_keys_id, required),
1246412464 (28, holder_max_accepted_htlcs, option),
@@ -12758,7 +12758,7 @@ where
1275812758
1275912759 funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
1276012760 channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12761- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12761+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
1276212762
1276312763 channel_keys_id,
1276412764
0 commit comments