@@ -2243,8 +2243,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
2243
2243
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2244
2244
funding_tx_broadcast_safe_event_emitted: bool,
2245
2245
2246
- // We track whether we already emitted a `ChannelReady` event.
2247
- channel_ready_event_emitted : bool,
2246
+ // We track whether we already emitted an initial `ChannelReady` event.
2247
+ initial_channel_ready_event_emitted : bool,
2248
2248
2249
2249
/// Some if we initiated to shut down the channel.
2250
2250
local_initiated_shutdown: Option<()>,
@@ -3053,7 +3053,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3053
3053
3054
3054
channel_pending_event_emitted: false,
3055
3055
funding_tx_broadcast_safe_event_emitted: false,
3056
- channel_ready_event_emitted : false,
3056
+ initial_channel_ready_event_emitted : false,
3057
3057
3058
3058
channel_keys_id,
3059
3059
@@ -3290,7 +3290,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3290
3290
3291
3291
channel_pending_event_emitted: false,
3292
3292
funding_tx_broadcast_safe_event_emitted: false,
3293
- channel_ready_event_emitted : false,
3293
+ initial_channel_ready_event_emitted : false,
3294
3294
3295
3295
channel_keys_id,
3296
3296
@@ -3724,14 +3724,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3724
3724
self.channel_pending_event_emitted = true;
3725
3725
}
3726
3726
3727
- // Checks whether we should emit a `ChannelReady` event.
3728
- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3729
- self.is_usable() && !self.channel_ready_event_emitted
3727
+ // Checks whether we should emit an initial `ChannelReady` event.
3728
+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3729
+ self.is_usable() && !self.initial_channel_ready_event_emitted
3730
3730
}
3731
3731
3732
3732
// Remembers that we already emitted a `ChannelReady` event.
3733
- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3734
- self.channel_ready_event_emitted = true;
3733
+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3734
+ self.initial_channel_ready_event_emitted = true;
3735
3735
}
3736
3736
3737
3737
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11209,7 +11209,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11209
11209
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11210
11210
11211
11211
let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11212
- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11212
+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
11213
11213
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
11214
11214
11215
11215
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11253,7 +11253,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11253
11253
(17, self.context.announcement_sigs_state, required),
11254
11254
(19, self.context.latest_inbound_scid_alias, option),
11255
11255
(21, self.context.outbound_scid_alias, required),
11256
- (23, channel_ready_event_emitted , option),
11256
+ (23, initial_channel_ready_event_emitted , option),
11257
11257
(25, user_id_high_opt, option),
11258
11258
(27, self.context.channel_keys_id, required),
11259
11259
(28, holder_max_accepted_htlcs, option),
@@ -11558,7 +11558,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11558
11558
let mut latest_inbound_scid_alias = None;
11559
11559
let mut outbound_scid_alias = 0u64;
11560
11560
let mut channel_pending_event_emitted = None;
11561
- let mut channel_ready_event_emitted = None;
11561
+ let mut initial_channel_ready_event_emitted = None;
11562
11562
let mut funding_tx_broadcast_safe_event_emitted = None;
11563
11563
11564
11564
let mut user_id_high_opt: Option<u64> = None;
@@ -11609,7 +11609,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11609
11609
(17, announcement_sigs_state, required),
11610
11610
(19, latest_inbound_scid_alias, option),
11611
11611
(21, outbound_scid_alias, required),
11612
- (23, channel_ready_event_emitted , option),
11612
+ (23, initial_channel_ready_event_emitted , option),
11613
11613
(25, user_id_high_opt, option),
11614
11614
(27, channel_keys_id, required),
11615
11615
(28, holder_max_accepted_htlcs, option),
@@ -11910,7 +11910,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11910
11910
11911
11911
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
11912
11912
channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11913
- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11913
+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
11914
11914
11915
11915
channel_keys_id,
11916
11916
0 commit comments