@@ -2440,8 +2440,8 @@ where
2440
2440
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2441
2441
funding_tx_broadcast_safe_event_emitted: bool,
2442
2442
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,
2445
2445
2446
2446
/// Some if we initiated to shut down the channel.
2447
2447
local_initiated_shutdown: Option<()>,
@@ -3288,7 +3288,7 @@ where
3288
3288
3289
3289
channel_pending_event_emitted: false,
3290
3290
funding_tx_broadcast_safe_event_emitted: false,
3291
- channel_ready_event_emitted : false,
3291
+ initial_channel_ready_event_emitted : false,
3292
3292
3293
3293
channel_keys_id,
3294
3294
@@ -3531,7 +3531,7 @@ where
3531
3531
3532
3532
channel_pending_event_emitted: false,
3533
3533
funding_tx_broadcast_safe_event_emitted: false,
3534
- channel_ready_event_emitted : false,
3534
+ initial_channel_ready_event_emitted : false,
3535
3535
3536
3536
channel_keys_id,
3537
3537
@@ -3959,14 +3959,14 @@ where
3959
3959
self.channel_pending_event_emitted = true;
3960
3960
}
3961
3961
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
3965
3965
}
3966
3966
3967
3967
// 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;
3970
3970
}
3971
3971
3972
3972
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -12050,7 +12050,7 @@ where
12050
12050
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
12051
12051
12052
12052
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 );
12054
12054
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
12055
12055
12056
12056
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -12094,7 +12094,7 @@ where
12094
12094
(17, self.context.announcement_sigs_state, required),
12095
12095
(19, self.context.latest_inbound_scid_alias, option),
12096
12096
(21, self.context.outbound_scid_alias, required),
12097
- (23, channel_ready_event_emitted , option),
12097
+ (23, initial_channel_ready_event_emitted , option),
12098
12098
(25, user_id_high_opt, option),
12099
12099
(27, self.context.channel_keys_id, required),
12100
12100
(28, holder_max_accepted_htlcs, option),
@@ -12403,7 +12403,7 @@ where
12403
12403
let mut latest_inbound_scid_alias = None;
12404
12404
let mut outbound_scid_alias = 0u64;
12405
12405
let mut channel_pending_event_emitted = None;
12406
- let mut channel_ready_event_emitted = None;
12406
+ let mut initial_channel_ready_event_emitted = None;
12407
12407
let mut funding_tx_broadcast_safe_event_emitted = None;
12408
12408
12409
12409
let mut user_id_high_opt: Option<u64> = None;
@@ -12458,7 +12458,7 @@ where
12458
12458
(17, announcement_sigs_state, required),
12459
12459
(19, latest_inbound_scid_alias, option),
12460
12460
(21, outbound_scid_alias, required),
12461
- (23, channel_ready_event_emitted , option),
12461
+ (23, initial_channel_ready_event_emitted , option),
12462
12462
(25, user_id_high_opt, option),
12463
12463
(27, channel_keys_id, required),
12464
12464
(28, holder_max_accepted_htlcs, option),
@@ -12758,7 +12758,7 @@ where
12758
12758
12759
12759
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
12760
12760
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),
12762
12762
12763
12763
channel_keys_id,
12764
12764
0 commit comments