Skip to content

Commit

Permalink
Send correct commitment point in channel_reestablish messages
Browse files Browse the repository at this point in the history
The commitment points we send in the `channel_reestablish` messages is
wrong. We need to send our commitment point for the peer's most recent
commitment, not theirs. This commit fixes the issue.
  • Loading branch information
canndrew committed Aug 3, 2020
1 parent 70da61d commit 6c77950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNetLightning.Core/Channel/Channel.fs
Expand Up @@ -123,7 +123,7 @@ module Channel =
YourLastPerCommitmentSecret =
commitments.RemotePerCommitmentSecrets.LastRevocationKey()
MyCurrentPerCommitmentPoint =
commitments.RemoteCommit.RemotePerCommitmentPoint
commitmentSeed.DeriveCommitmentPubKey commitments.RemoteCommit.Index
}
}
[ WeSentChannelReestablish ourChannelReestablish ] |> Ok
Expand Down

0 comments on commit 6c77950

Please sign in to comment.