@@ -1850,7 +1850,7 @@ where
1850
1850
pending_funding: vec![],
1851
1851
context: chan.context,
1852
1852
interactive_tx_signing_session: chan.interactive_tx_signing_session,
1853
- previous_holder_commitment_point : None,
1853
+ current_holder_commitment_point : None,
1854
1854
next_holder_commitment_point: initial_holder_commitment_point,
1855
1855
#[cfg(splicing)]
1856
1856
pending_splice: None,
@@ -6068,8 +6068,8 @@ where
6068
6068
/// This field is cleared once our counterparty sends a `channel_ready`.
6069
6069
pub interactive_tx_signing_session: Option<InteractiveTxSigningSession>,
6070
6070
6071
- /// The commitment point used for the previous commitment transaction.
6072
- previous_holder_commitment_point : Option<HolderCommitmentPoint>,
6071
+ /// The commitment point used for the current holder commitment transaction.
6072
+ current_holder_commitment_point : Option<HolderCommitmentPoint>,
6073
6073
6074
6074
/// The commitment point used for the next holder commitment transaction.
6075
6075
next_holder_commitment_point: HolderCommitmentPoint,
@@ -6957,7 +6957,7 @@ where
6957
6957
6958
6958
let (channel_monitor, _, next_holder_commitment_point) = self.initial_commitment_signed(
6959
6959
self.context.channel_id(), msg.signature, &holder_commitment_point, best_block, signer_provider, logger)?;
6960
- self.previous_holder_commitment_point = Some(holder_commitment_point);
6960
+ self.current_holder_commitment_point = Some(holder_commitment_point);
6961
6961
self.next_holder_commitment_point = next_holder_commitment_point;
6962
6962
6963
6963
log_info!(logger, "Received initial commitment_signed from peer for channel {}", &self.context.channel_id());
@@ -7230,7 +7230,7 @@ where
7230
7230
debug_assert!(false, "We should be ready to advance our commitment point by the time we receive commitment_signed");
7231
7231
ChannelError::close("Failed to advance our commitment point".to_owned())
7232
7232
})?;
7233
- self.previous_holder_commitment_point = Some(self.next_holder_commitment_point);
7233
+ self.current_holder_commitment_point = Some(self.next_holder_commitment_point);
7234
7234
self.next_holder_commitment_point = next_holder_commitment_point;
7235
7235
7236
7236
// Update state now that we've passed all the can-fail calls...
@@ -12066,7 +12066,7 @@ where
12066
12066
pending_funding: vec![],
12067
12067
context: self.context,
12068
12068
interactive_tx_signing_session: None,
12069
- previous_holder_commitment_point : Some(initial_holder_commitment_point),
12069
+ current_holder_commitment_point : Some(initial_holder_commitment_point),
12070
12070
next_holder_commitment_point,
12071
12071
#[cfg(splicing)]
12072
12072
pending_splice: None,
@@ -12353,7 +12353,7 @@ where
12353
12353
pending_funding: vec![],
12354
12354
context: self.context,
12355
12355
interactive_tx_signing_session: None,
12356
- previous_holder_commitment_point : Some(initial_holder_commitment_point),
12356
+ current_holder_commitment_point : Some(initial_holder_commitment_point),
12357
12357
next_holder_commitment_point,
12358
12358
#[cfg(splicing)]
12359
12359
pending_splice: None,
@@ -13873,17 +13873,17 @@ where
13873
13873
},
13874
13874
};
13875
13875
13876
- let previous_holder_commitment_point = {
13877
- let previous_holder_commitment_transaction_number =
13876
+ let current_holder_commitment_point = {
13877
+ let current_holder_commitment_transaction_number =
13878
13878
next_holder_commitment_point.transaction_number() + 1;
13879
- let previous_point = holder_signer
13880
- .get_per_commitment_point(previous_holder_commitment_transaction_number , &secp_ctx)
13879
+ let point = holder_signer
13880
+ .get_per_commitment_point(current_holder_commitment_transaction_number , &secp_ctx)
13881
13881
.expect(
13882
- "Must be able to derive the previous commitment point upon channel restoration",
13882
+ "Must be able to derive the current commitment point upon channel restoration",
13883
13883
);
13884
13884
Some(HolderCommitmentPoint {
13885
- transaction_number: previous_holder_commitment_transaction_number ,
13886
- point: previous_point ,
13885
+ transaction_number: current_holder_commitment_transaction_number ,
13886
+ point,
13887
13887
next_point: Some(next_holder_commitment_point.point()),
13888
13888
})
13889
13889
};
@@ -14025,7 +14025,7 @@ where
14025
14025
is_holder_quiescence_initiator: None,
14026
14026
},
14027
14027
interactive_tx_signing_session,
14028
- previous_holder_commitment_point ,
14028
+ current_holder_commitment_point ,
14029
14029
next_holder_commitment_point,
14030
14030
#[cfg(splicing)]
14031
14031
pending_splice: None,
0 commit comments