@@ -2139,8 +2139,8 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
2139
2139
// We track whether we already emitted a `FundingTxBroadcastSafe` event.
2140
2140
funding_tx_broadcast_safe_event_emitted: bool,
2141
2141
2142
- // We track whether we already emitted a `ChannelReady` event.
2143
- channel_ready_event_emitted : bool,
2142
+ // We track whether we already emitted an initial `ChannelReady` event.
2143
+ initial_channel_ready_event_emitted : bool,
2144
2144
2145
2145
/// Some if we initiated to shut down the channel.
2146
2146
local_initiated_shutdown: Option<()>,
@@ -2948,7 +2948,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2948
2948
2949
2949
channel_pending_event_emitted: false,
2950
2950
funding_tx_broadcast_safe_event_emitted: false,
2951
- channel_ready_event_emitted : false,
2951
+ initial_channel_ready_event_emitted : false,
2952
2952
2953
2953
channel_keys_id,
2954
2954
@@ -3184,7 +3184,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3184
3184
3185
3185
channel_pending_event_emitted: false,
3186
3186
funding_tx_broadcast_safe_event_emitted: false,
3187
- channel_ready_event_emitted : false,
3187
+ initial_channel_ready_event_emitted : false,
3188
3188
3189
3189
channel_keys_id,
3190
3190
@@ -3608,14 +3608,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3608
3608
self.channel_pending_event_emitted = true;
3609
3609
}
3610
3610
3611
- // Checks whether we should emit a `ChannelReady` event.
3612
- pub(crate) fn should_emit_channel_ready_event (&mut self) -> bool {
3613
- self.is_usable() && !self.channel_ready_event_emitted
3611
+ // Checks whether we should emit an initial `ChannelReady` event.
3612
+ pub(crate) fn should_emit_initial_channel_ready_event (&mut self) -> bool {
3613
+ self.is_usable() && !self.initial_channel_ready_event_emitted
3614
3614
}
3615
3615
3616
3616
// Remembers that we already emitted a `ChannelReady` event.
3617
- pub(crate) fn set_channel_ready_event_emitted (&mut self) {
3618
- self.channel_ready_event_emitted = true;
3617
+ pub(crate) fn set_initial_channel_ready_event_emitted (&mut self) {
3618
+ self.initial_channel_ready_event_emitted = true;
3619
3619
}
3620
3620
3621
3621
// Remembers that we already emitted a `FundingTxBroadcastSafe` event.
@@ -11087,7 +11087,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11087
11087
{ Some(self.context.holder_max_htlc_value_in_flight_msat) } else { None };
11088
11088
11089
11089
let channel_pending_event_emitted = Some(self.context.channel_pending_event_emitted);
11090
- let channel_ready_event_emitted = Some(self.context.channel_ready_event_emitted );
11090
+ let initial_channel_ready_event_emitted = Some(self.context.initial_channel_ready_event_emitted );
11091
11091
let funding_tx_broadcast_safe_event_emitted = Some(self.context.funding_tx_broadcast_safe_event_emitted);
11092
11092
11093
11093
// `user_id` used to be a single u64 value. In order to remain backwards compatible with
@@ -11131,7 +11131,7 @@ impl<SP: Deref> Writeable for FundedChannel<SP> where SP::Target: SignerProvider
11131
11131
(17, self.context.announcement_sigs_state, required),
11132
11132
(19, self.context.latest_inbound_scid_alias, option),
11133
11133
(21, self.context.outbound_scid_alias, required),
11134
- (23, channel_ready_event_emitted , option),
11134
+ (23, initial_channel_ready_event_emitted , option),
11135
11135
(25, user_id_high_opt, option),
11136
11136
(27, self.context.channel_keys_id, required),
11137
11137
(28, holder_max_accepted_htlcs, option),
@@ -11418,7 +11418,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11418
11418
let mut latest_inbound_scid_alias = None;
11419
11419
let mut outbound_scid_alias = 0u64;
11420
11420
let mut channel_pending_event_emitted = None;
11421
- let mut channel_ready_event_emitted = None;
11421
+ let mut initial_channel_ready_event_emitted = None;
11422
11422
let mut funding_tx_broadcast_safe_event_emitted = None;
11423
11423
11424
11424
let mut user_id_high_opt: Option<u64> = None;
@@ -11468,7 +11468,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11468
11468
(17, announcement_sigs_state, required),
11469
11469
(19, latest_inbound_scid_alias, option),
11470
11470
(21, outbound_scid_alias, required),
11471
- (23, channel_ready_event_emitted , option),
11471
+ (23, initial_channel_ready_event_emitted , option),
11472
11472
(25, user_id_high_opt, option),
11473
11473
(27, channel_keys_id, required),
11474
11474
(28, holder_max_accepted_htlcs, option),
@@ -11763,7 +11763,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11763
11763
11764
11764
funding_tx_broadcast_safe_event_emitted: funding_tx_broadcast_safe_event_emitted.unwrap_or(false),
11765
11765
channel_pending_event_emitted: channel_pending_event_emitted.unwrap_or(true),
11766
- channel_ready_event_emitted: channel_ready_event_emitted .unwrap_or(true),
11766
+ initial_channel_ready_event_emitted: initial_channel_ready_event_emitted .unwrap_or(true),
11767
11767
11768
11768
channel_keys_id,
11769
11769
0 commit comments