We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc9b8a commit 48c6e90Copy full SHA for 48c6e90
lightning/src/ln/channel.rs
@@ -9166,7 +9166,7 @@ where
9166
return Err(ChannelError::close("Peer sent an invalid channel_reestablish to force close in a non-standard way".to_owned()));
9167
}
9168
9169
- let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.next_transaction_number() - 1;
+ let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.current_transaction_number();
9170
if msg.next_remote_commitment_number > 0 {
9171
let expected_point = self.context.holder_signer.as_ref()
9172
.get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx)
0 commit comments