@@ -750,7 +750,7 @@ pub(super) struct ChannelContext<SP: Deref> where SP::Target: SignerProvider {
750
750
///
751
751
/// We don't bother to persist this - we anticipate this state won't last longer than a few
752
752
/// milliseconds, so any accidental force-closes here should be exceedingly rare.
753
- expecting_peer_cs : bool,
753
+ expecting_peer_commitment_signed : bool,
754
754
755
755
/// The hash of the block in which the funding transaction was included.
756
756
funding_tx_confirmed_in: Option<BlockHash>,
@@ -3043,7 +3043,7 @@ impl<SP: Deref> Channel<SP> where
3043
3043
};
3044
3044
3045
3045
self.context.cur_holder_commitment_transaction_number -= 1;
3046
- self.context.expecting_peer_cs = false;
3046
+ self.context.expecting_peer_commitment_signed = false;
3047
3047
// Note that if we need_commitment & !AwaitingRemoteRevoke we'll call
3048
3048
// build_commitment_no_status_check() next which will reset this to RAAFirst.
3049
3049
self.context.resend_order = RAACommitmentOrder::CommitmentFirst;
@@ -3310,7 +3310,7 @@ impl<SP: Deref> Channel<SP> where
3310
3310
// Take references explicitly so that we can hold multiple references to self.context.
3311
3311
let pending_inbound_htlcs: &mut Vec<_> = &mut self.context.pending_inbound_htlcs;
3312
3312
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 ;
3314
3314
3315
3315
// We really shouldnt have two passes here, but retain gives a non-mutable ref (Rust bug)
3316
3316
pending_inbound_htlcs.retain(|htlc| {
@@ -3319,7 +3319,7 @@ impl<SP: Deref> Channel<SP> where
3319
3319
if let &InboundHTLCRemovalReason::Fulfill(_) = reason {
3320
3320
value_to_self_msat_diff += htlc.amount_msat as i64;
3321
3321
}
3322
- *expecting_peer_cs = true;
3322
+ *expecting_peer_commitment_signed = true;
3323
3323
false
3324
3324
} else { true }
3325
3325
});
@@ -3379,7 +3379,7 @@ impl<SP: Deref> Channel<SP> where
3379
3379
if let OutboundHTLCState::LocalAnnounced(_) = htlc.state {
3380
3380
log_trace!(logger, " ...promoting outbound LocalAnnounced {} to Committed", &htlc.payment_hash);
3381
3381
htlc.state = OutboundHTLCState::Committed;
3382
- *expecting_peer_cs = true;
3382
+ *expecting_peer_commitment_signed = true;
3383
3383
}
3384
3384
if let &mut OutboundHTLCState::AwaitingRemoteRevokeToRemove(ref mut outcome) = &mut htlc.state {
3385
3385
log_trace!(logger, " ...promoting outbound AwaitingRemoteRevokeToRemove {} to AwaitingRemovedRemoteRevoke", &htlc.payment_hash);
@@ -3400,7 +3400,7 @@ impl<SP: Deref> Channel<SP> where
3400
3400
log_trace!(logger, " ...promoting outbound fee update {} to Committed", feerate);
3401
3401
self.context.feerate_per_kw = feerate;
3402
3402
self.context.pending_update_fee = None;
3403
- self.context.expecting_peer_cs = true;
3403
+ self.context.expecting_peer_commitment_signed = true;
3404
3404
},
3405
3405
FeeUpdateState::RemoteAnnounced => { debug_assert!(!self.context.is_outbound()); },
3406
3406
FeeUpdateState::AwaitingRemoteRevokeToAnnounce => {
@@ -4150,7 +4150,7 @@ impl<SP: Deref> Channel<SP> where
4150
4150
4151
4151
// If we're waiting on a counterparty `commitment_signed` to clear some updates from our
4152
4152
// 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 {
4154
4154
return Ok((None, None));
4155
4155
}
4156
4156
@@ -5725,7 +5725,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
5725
5725
5726
5726
last_sent_closing_fee: None,
5727
5727
pending_counterparty_closing_signed: None,
5728
- expecting_peer_cs : false,
5728
+ expecting_peer_commitment_signed : false,
5729
5729
closing_fee_limits: None,
5730
5730
target_closing_feerate_sats_per_kw: None,
5731
5731
@@ -6364,7 +6364,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
6364
6364
6365
6365
last_sent_closing_fee: None,
6366
6366
pending_counterparty_closing_signed: None,
6367
- expecting_peer_cs : false,
6367
+ expecting_peer_commitment_signed : false,
6368
6368
closing_fee_limits: None,
6369
6369
target_closing_feerate_sats_per_kw: None,
6370
6370
@@ -7458,7 +7458,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
7458
7458
7459
7459
last_sent_closing_fee: None,
7460
7460
pending_counterparty_closing_signed: None,
7461
- expecting_peer_cs : false,
7461
+ expecting_peer_commitment_signed : false,
7462
7462
closing_fee_limits: None,
7463
7463
target_closing_feerate_sats_per_kw,
7464
7464
0 commit comments