@@ -2295,8 +2295,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
2295
2295
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2296
2296
funding_tx_broadcast_safe_event_emitted: bool,
2297
2297
2298
- // We track whether we already emitted a `ChannelReady` event.
2299
- channel_ready_event_emitted : bool,
2298
+ // We track whether we already emitted an initial `ChannelReady` event.
2299
+ initial_channel_ready_event_emitted : bool,
2300
2300
2301
2301
/// Some if we initiated to shut down the channel.
2302
2302
local_initiated_shutdown: Option<()>,
@@ -3110,7 +3110,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3110
3110
3111
3111
channel_pending_event_emitted: false,
3112
3112
funding_tx_broadcast_safe_event_emitted: false,
3113
- channel_ready_event_emitted : false,
3113
+ initial_channel_ready_event_emitted : false,
3114
3114
3115
3115
channel_keys_id,
3116
3116
@@ -3352,7 +3352,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3352
3352
3353
3353
channel_pending_event_emitted: false,
3354
3354
funding_tx_broadcast_safe_event_emitted: false,
3355
- channel_ready_event_emitted : false,
3355
+ initial_channel_ready_event_emitted : false,
3356
3356
3357
3357
channel_keys_id,
3358
3358
@@ -3771,14 +3771,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3771
3771
self.channel_pending_event_emitted = true;
3772
3772
}
3773
3773
3774
- // Checks whether we should emit a `ChannelReady` event.
3775
- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3776
- self.is_usable() && !self.channel_ready_event_emitted
3774
+ // Checks whether we should emit an initial `ChannelReady` event.
3775
+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3776
+ self.is_usable() && !self.initial_channel_ready_event_emitted
3777
3777
}
3778
3778
3779
3779
// Remembers that we already emitted a `ChannelReady` event.
3780
- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3781
- self.channel_ready_event_emitted = true;
3780
+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3781
+ self.initial_channel_ready_event_emitted = true;
3782
3782
}
3783
3783
3784
3784
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11633,7 +11633,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11633
11633
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11634
11634
11635
11635
let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11636
- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11636
+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
11637
11637
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
11638
11638
11639
11639
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11677,7 +11677,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11677
11677
(17, self.context.announcement_sigs_state, required),
11678
11678
(19, self.context.latest_inbound_scid_alias, option),
11679
11679
(21, self.context.outbound_scid_alias, required),
11680
- (23, channel_ready_event_emitted , option),
11680
+ (23, initial_channel_ready_event_emitted , option),
11681
11681
(25, user_id_high_opt, option),
11682
11682
(27, self.context.channel_keys_id, required),
11683
11683
(28, holder_max_accepted_htlcs, option),
@@ -11984,7 +11984,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11984
11984
let mut latest_inbound_scid_alias = None;
11985
11985
let mut outbound_scid_alias = 0u64;
11986
11986
let mut channel_pending_event_emitted = None;
11987
- let mut channel_ready_event_emitted = None;
11987
+ let mut initial_channel_ready_event_emitted = None;
11988
11988
let mut funding_tx_broadcast_safe_event_emitted = None;
11989
11989
11990
11990
let mut user_id_high_opt: Option<u64> = None;
@@ -12039,7 +12039,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
12039
12039
(17, announcement_sigs_state, required),
12040
12040
(19, latest_inbound_scid_alias, option),
12041
12041
(21, outbound_scid_alias, required),
12042
- (23, channel_ready_event_emitted , option),
12042
+ (23, initial_channel_ready_event_emitted , option),
12043
12043
(25, user_id_high_opt, option),
12044
12044
(27, channel_keys_id, required),
12045
12045
(28, holder_max_accepted_htlcs, option),
@@ -12339,7 +12339,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
12339
12339
12340
12340
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
12341
12341
channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
12342
- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
12342
+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
12343
12343
12344
12344
channel_keys_id,
12345
12345
0 commit comments