Skip to content

Commit 48c6e90

Browse files
jkczyzAnyitechs
authored andcommitted
Use HolderCommitmentPoint::current_transaction_number
1 parent 1bc9b8a commit 48c6e90

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
@@ -9166,7 +9166,7 @@ where
91669166
return Err(ChannelError::close("Peer sent an invalid channel_reestablish to force close in a non-standard way".to_owned()));
91679167
}
91689168

9169-
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.next_transaction_number() - 1;
9169+
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.current_transaction_number();
91709170
if msg.next_remote_commitment_number > 0 {
91719171
let expected_point = self.context.holder_signer.as_ref()
91729172
.get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx)

0 commit comments

Comments
 (0)