-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: simplify VerifyCommitTrusting #4798
Conversation
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been
Thank you for your contribution to Tendermint! 🚀 |
@@ -632,9 +632,17 @@ func (vals *ValidatorSet) VerifyCommit(chainID string, blockID BlockID, | |||
if vals.Size() != len(commit.Signatures) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VerifyCommit
should probably be renamed to ValidateAndVerifyCommit
Codecov Report
@@ Coverage Diff @@
## master #4798 +/- ##
==========================================
- Coverage 64.24% 64.19% -0.05%
==========================================
Files 220 220
Lines 20344 20342 -2
==========================================
- Hits 13069 13059 -10
- Misses 6236 6241 +5
- Partials 1039 1042 +3
|
Closes #4783
It looks like we're validating Commit twice. Also, height and blockID params were coming from the commit, so no need to pass them separately.