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