@@ -2290,8 +2290,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
2290
2290
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2291
2291
funding_tx_broadcast_safe_event_emitted: bool,
2292
2292
2293
- // We track whether we already emitted a `ChannelReady` event.
2294
- channel_ready_event_emitted : bool,
2293
+ // We track whether we already emitted an initial `ChannelReady` event.
2294
+ initial_channel_ready_event_emitted : bool,
2295
2295
2296
2296
/// Some if we initiated to shut down the channel.
2297
2297
local_initiated_shutdown: Option<()>,
@@ -3105,7 +3105,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3105
3105
3106
3106
channel_pending_event_emitted: false,
3107
3107
funding_tx_broadcast_safe_event_emitted: false,
3108
- channel_ready_event_emitted : false,
3108
+ initial_channel_ready_event_emitted : false,
3109
3109
3110
3110
channel_keys_id,
3111
3111
@@ -3341,7 +3341,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3341
3341
3342
3342
channel_pending_event_emitted: false,
3343
3343
funding_tx_broadcast_safe_event_emitted: false,
3344
- channel_ready_event_emitted : false,
3344
+ initial_channel_ready_event_emitted : false,
3345
3345
3346
3346
channel_keys_id,
3347
3347
@@ -3760,14 +3760,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3760
3760
self.channel_pending_event_emitted = true;
3761
3761
}
3762
3762
3763
- // Checks whether we should emit a `ChannelReady` event.
3764
- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3765
- self.is_usable() && !self.channel_ready_event_emitted
3763
+ // Checks whether we should emit an initial `ChannelReady` event.
3764
+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3765
+ self.is_usable() && !self.initial_channel_ready_event_emitted
3766
3766
}
3767
3767
3768
3768
// Remembers that we already emitted a `ChannelReady` event.
3769
- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3770
- self.channel_ready_event_emitted = true;
3769
+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3770
+ self.initial_channel_ready_event_emitted = true;
3771
3771
}
3772
3772
3773
3773
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11505,7 +11505,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11505
11505
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11506
11506
11507
11507
let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11508
- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11508
+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
11509
11509
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
11510
11510
11511
11511
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11549,7 +11549,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11549
11549
(17, self.context.announcement_sigs_state, required),
11550
11550
(19, self.context.latest_inbound_scid_alias, option),
11551
11551
(21, self.context.outbound_scid_alias, required),
11552
- (23, channel_ready_event_emitted , option),
11552
+ (23, initial_channel_ready_event_emitted , option),
11553
11553
(25, user_id_high_opt, option),
11554
11554
(27, self.context.channel_keys_id, required),
11555
11555
(28, holder_max_accepted_htlcs, option),
@@ -11856,7 +11856,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11856
11856
let mut latest_inbound_scid_alias = None;
11857
11857
let mut outbound_scid_alias = 0u64;
11858
11858
let mut channel_pending_event_emitted = None;
11859
- let mut channel_ready_event_emitted = None;
11859
+ let mut initial_channel_ready_event_emitted = None;
11860
11860
let mut funding_tx_broadcast_safe_event_emitted = None;
11861
11861
11862
11862
let mut user_id_high_opt: Option<u64> = None;
@@ -11911,7 +11911,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11911
11911
(17, announcement_sigs_state, required),
11912
11912
(19, latest_inbound_scid_alias, option),
11913
11913
(21, outbound_scid_alias, required),
11914
- (23, channel_ready_event_emitted , option),
11914
+ (23, initial_channel_ready_event_emitted , option),
11915
11915
(25, user_id_high_opt, option),
11916
11916
(27, channel_keys_id, required),
11917
11917
(28, holder_max_accepted_htlcs, option),
@@ -12211,7 +12211,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
12211
12211
12212
12212
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
12213
12213
channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12214
- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12214
+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
12215
12215
12216
12216
channel_keys_id,
12217
12217
0 commit comments