@@ -2236,8 +2236,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
2236
2236
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2237
2237
funding_tx_broadcast_safe_event_emitted: bool,
2238
2238
2239
- // We track whether we already emitted a `ChannelReady` event.
2240
- channel_ready_event_emitted : bool,
2239
+ // We track whether we already emitted an initial `ChannelReady` event.
2240
+ initial_channel_ready_event_emitted : bool,
2241
2241
2242
2242
/// Some if we initiated to shut down the channel.
2243
2243
local_initiated_shutdown: Option<()>,
@@ -3045,7 +3045,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3045
3045
3046
3046
channel_pending_event_emitted: false,
3047
3047
funding_tx_broadcast_safe_event_emitted: false,
3048
- channel_ready_event_emitted : false,
3048
+ initial_channel_ready_event_emitted : false,
3049
3049
3050
3050
channel_keys_id,
3051
3051
@@ -3281,7 +3281,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3281
3281
3282
3282
channel_pending_event_emitted: false,
3283
3283
funding_tx_broadcast_safe_event_emitted: false,
3284
- channel_ready_event_emitted : false,
3284
+ initial_channel_ready_event_emitted : false,
3285
3285
3286
3286
channel_keys_id,
3287
3287
@@ -3715,14 +3715,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3715
3715
self.channel_pending_event_emitted = true;
3716
3716
}
3717
3717
3718
- // Checks whether we should emit a `ChannelReady` event.
3719
- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3720
- self.is_usable() && !self.channel_ready_event_emitted
3718
+ // Checks whether we should emit an initial `ChannelReady` event.
3719
+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3720
+ self.is_usable() && !self.initial_channel_ready_event_emitted
3721
3721
}
3722
3722
3723
3723
// Remembers that we already emitted a `ChannelReady` event.
3724
- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3725
- self.channel_ready_event_emitted = true;
3724
+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3725
+ self.initial_channel_ready_event_emitted = true;
3726
3726
}
3727
3727
3728
3728
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11197,7 +11197,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11197
11197
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11198
11198
11199
11199
let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11200
- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11200
+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
11201
11201
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
11202
11202
11203
11203
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11241,7 +11241,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11241
11241
(17, self.context.announcement_sigs_state, required),
11242
11242
(19, self.context.latest_inbound_scid_alias, option),
11243
11243
(21, self.context.outbound_scid_alias, required),
11244
- (23, channel_ready_event_emitted , option),
11244
+ (23, initial_channel_ready_event_emitted , option),
11245
11245
(25, user_id_high_opt, option),
11246
11246
(27, self.context.channel_keys_id, required),
11247
11247
(28, holder_max_accepted_htlcs, option),
@@ -11545,7 +11545,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11545
11545
let mut latest_inbound_scid_alias = None;
11546
11546
let mut outbound_scid_alias = 0u64;
11547
11547
let mut channel_pending_event_emitted = None;
11548
- let mut channel_ready_event_emitted = None;
11548
+ let mut initial_channel_ready_event_emitted = None;
11549
11549
let mut funding_tx_broadcast_safe_event_emitted = None;
11550
11550
11551
11551
let mut user_id_high_opt: Option<u64> = None;
@@ -11595,7 +11595,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11595
11595
(17, announcement_sigs_state, required),
11596
11596
(19, latest_inbound_scid_alias, option),
11597
11597
(21, outbound_scid_alias, required),
11598
- (23, channel_ready_event_emitted , option),
11598
+ (23, initial_channel_ready_event_emitted , option),
11599
11599
(25, user_id_high_opt, option),
11600
11600
(27, channel_keys_id, required),
11601
11601
(28, holder_max_accepted_htlcs, option),
@@ -11894,7 +11894,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11894
11894
11895
11895
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
11896
11896
channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11897
- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11897
+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
11898
11898
11899
11899
channel_keys_id,
11900
11900
0 commit comments