Skip to content

Commit 51406e6

Browse files
committed
Use HolderCommitmentPoint::current_transaction_number
1 parent ddd4972 commit 51406e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9129,7 +9129,7 @@ where
91299129
return Err(ChannelError::close("Peer sent an invalid channel_reestablish to force close in a non-standard way".to_owned()));
91309130
}
91319131

9132-
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.next_transaction_number() - 1;
9132+
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.current_transaction_number();
91339133
if msg.next_remote_commitment_number > 0 {
91349134
let expected_point = self.context.holder_signer.as_ref()
91359135
.get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx)

0 commit comments

Comments
 (0)