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 ddd4972 commit 51406e6Copy full SHA for 51406e6
lightning/src/ln/channel.rs
@@ -9129,7 +9129,7 @@ where
9129
return Err(ChannelError::close("Peer sent an invalid channel_reestablish to force close in a non-standard way".to_owned()));
9130
}
9131
9132
- 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();
9133
if msg.next_remote_commitment_number > 0 {
9134
let expected_point = self.context.holder_signer.as_ref()
9135
.get_per_commitment_point(INITIAL_COMMITMENT_NUMBER - msg.next_remote_commitment_number + 1, &self.context.secp_ctx)
0 commit comments