@@ -750,7 +750,7 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
750750 ///
751751 /// We don't bother to persist this - we anticipate this state won't last longer than a few
752752 /// milliseconds, so any accidental force-closes here should be exceedingly rare.
753- expecting_peer_cs : bool,
753+ expecting_peer_commitment_signed : bool,
754754
755755 /// The hash of the block in which the funding transaction was included.
756756 funding_tx_confirmed_in: Option<BlockHash>,
@@ -3043,7 +3043,7 @@ impl<SP: Deref> Channel<SP> where
30433043 };
30443044
30453045 self.context.cur_holder_commitment_transaction_number -= 1;
3046- self.context.expecting_peer_cs = false;
3046+ self.context.expecting_peer_commitment_signed = false;
30473047 // Note that if we need_commitment & !AwaitingRemoteRevoke we'll call
30483048 // build_commitment_no_status_check() next which will reset this to RAAFirst.
30493049 self.context.resend_order = RAACommitmentOrder::CommitmentFirst;
@@ -3310,7 +3310,7 @@ impl<SP: Deref> Channel<SP> where
33103310 // Take references explicitly so that we can hold multiple references to self.context.
33113311 let pending_inbound_htlcs: &mut Vec<_> = &mut self.context.pending_inbound_htlcs;
33123312 let pending_outbound_htlcs: &mut Vec<_> = &mut self.context.pending_outbound_htlcs;
3313- let expecting_peer_cs = &mut self.context.expecting_peer_cs ;
3313+ let expecting_peer_commitment_signed = &mut self.context.expecting_peer_commitment_signed ;
33143314
33153315 // We really shouldnt have two passes here, but retain gives a non-mutable ref (Rust bug)
33163316 pending_inbound_htlcs.retain(|htlc| {
@@ -3319,7 +3319,7 @@ impl<SP: Deref> Channel<SP> where
33193319 if let &InboundHTLCRemovalReason::Fulfill(_) = reason {
33203320 value_to_self_msat_diff += htlc.amount_msat as i64;
33213321 }
3322- *expecting_peer_cs = true;
3322+ *expecting_peer_commitment_signed = true;
33233323 false
33243324 } else { true }
33253325 });
@@ -3379,7 +3379,7 @@ impl<SP: Deref> Channel<SP> where
33793379 if let OutboundHTLCState::LocalAnnounced(_) = htlc.state {
33803380 log_trace!(logger, " ...promoting outbound LocalAnnounced {} to Committed", &htlc.payment_hash);
33813381 htlc.state = OutboundHTLCState::Committed;
3382- *expecting_peer_cs = true;
3382+ *expecting_peer_commitment_signed = true;
33833383 }
33843384 if let &mut OutboundHTLCState::AwaitingRemoteRevokeToRemove(ref mut outcome) = &mut htlc.state {
33853385 log_trace!(logger, " ...promoting outbound AwaitingRemoteRevokeToRemove {} to AwaitingRemovedRemoteRevoke", &htlc.payment_hash);
@@ -3400,7 +3400,7 @@ impl<SP: Deref> Channel<SP> where
34003400 log_trace!(logger, " ...promoting outbound fee update {} to Committed", feerate);
34013401 self.context.feerate_per_kw = feerate;
34023402 self.context.pending_update_fee = None;
3403- self.context.expecting_peer_cs = true;
3403+ self.context.expecting_peer_commitment_signed = true;
34043404 },
34053405 FeeUpdateState::RemoteAnnounced => { debug_assert!(!self.context.is_outbound()); },
34063406 FeeUpdateState::AwaitingRemoteRevokeToAnnounce => {
@@ -4150,7 +4150,7 @@ impl<SP: Deref> Channel<SP> where
41504150
41514151 // If we're waiting on a counterparty `commitment_signed` to clear some updates from our
41524152 // local commitment transaction, we can't yet initiate `closing_signed` negotiation.
4153- if self.context.expecting_peer_cs {
4153+ if self.context.expecting_peer_commitment_signed {
41544154 return Ok((None, None));
41554155 }
41564156
@@ -5725,7 +5725,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
57255725
57265726 last_sent_closing_fee: None,
57275727 pending_counterparty_closing_signed: None,
5728- expecting_peer_cs : false,
5728+ expecting_peer_commitment_signed : false,
57295729 closing_fee_limits: None,
57305730 target_closing_feerate_sats_per_kw: None,
57315731
@@ -6364,7 +6364,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
63646364
63656365 last_sent_closing_fee: None,
63666366 pending_counterparty_closing_signed: None,
6367- expecting_peer_cs : false,
6367+ expecting_peer_commitment_signed : false,
63686368 closing_fee_limits: None,
63696369 target_closing_feerate_sats_per_kw: None,
63706370
@@ -7458,7 +7458,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
74587458
74597459 last_sent_closing_fee: None,
74607460 pending_counterparty_closing_signed: None,
7461- expecting_peer_cs : false,
7461+ expecting_peer_commitment_signed : false,
74627462 closing_fee_limits: None,
74637463 target_closing_feerate_sats_per_kw,
74647464
0 commit comments