@@ -2428,8 +2428,8 @@ where
2428
2428
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2429
2429
funding_tx_broadcast_safe_event_emitted: bool,
2430
2430
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,
2433
2433
2434
2434
/// Some if we initiated to shut down the channel.
2435
2435
local_initiated_shutdown: Option<()>,
@@ -3272,7 +3272,7 @@ where
3272
3272
3273
3273
channel_pending_event_emitted: false,
3274
3274
funding_tx_broadcast_safe_event_emitted: false,
3275
- channel_ready_event_emitted : false,
3275
+ initial_channel_ready_event_emitted : false,
3276
3276
3277
3277
channel_keys_id,
3278
3278
@@ -3515,7 +3515,7 @@ where
3515
3515
3516
3516
channel_pending_event_emitted: false,
3517
3517
funding_tx_broadcast_safe_event_emitted: false,
3518
- channel_ready_event_emitted : false,
3518
+ initial_channel_ready_event_emitted : false,
3519
3519
3520
3520
channel_keys_id,
3521
3521
@@ -3945,14 +3945,14 @@ where
3945
3945
self.channel_pending_event_emitted = true;
3946
3946
}
3947
3947
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
3951
3951
}
3952
3952
3953
3953
// 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;
3956
3956
}
3957
3957
3958
3958
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11997,7 +11997,7 @@ where
11997
11997
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11998
11998
11999
11999
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 );
12001
12001
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
12002
12002
12003
12003
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -12041,7 +12041,7 @@ where
12041
12041
(17, self.context.announcement_sigs_state, required),
12042
12042
(19, self.context.latest_inbound_scid_alias, option),
12043
12043
(21, self.context.outbound_scid_alias, required),
12044
- (23, channel_ready_event_emitted , option),
12044
+ (23, initial_channel_ready_event_emitted , option),
12045
12045
(25, user_id_high_opt, option),
12046
12046
(27, self.context.channel_keys_id, required),
12047
12047
(28, holder_max_accepted_htlcs, option),
@@ -12350,7 +12350,7 @@ where
12350
12350
let mut latest_inbound_scid_alias = None;
12351
12351
let mut outbound_scid_alias = 0u64;
12352
12352
let mut channel_pending_event_emitted = None;
12353
- let mut channel_ready_event_emitted = None;
12353
+ let mut initial_channel_ready_event_emitted = None;
12354
12354
let mut funding_tx_broadcast_safe_event_emitted = None;
12355
12355
12356
12356
let mut user_id_high_opt: Option<u64> = None;
@@ -12405,7 +12405,7 @@ where
12405
12405
(17, announcement_sigs_state, required),
12406
12406
(19, latest_inbound_scid_alias, option),
12407
12407
(21, outbound_scid_alias, required),
12408
- (23, channel_ready_event_emitted , option),
12408
+ (23, initial_channel_ready_event_emitted , option),
12409
12409
(25, user_id_high_opt, option),
12410
12410
(27, channel_keys_id, required),
12411
12411
(28, holder_max_accepted_htlcs, option),
@@ -12705,7 +12705,7 @@ where
12705
12705
12706
12706
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
12707
12707
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),
12709
12709
12710
12710
channel_keys_id,
12711
12711
0 commit comments