-
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
evidence: fix bug with hashes #6375
Conversation
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.
@marbar3778 can you confirm that this makes sense :)
// NOTE: Sometimes we use the bytes of the proto form as a hash. This means that we need to | ||
// be consistent with cached data | ||
vp.TotalVotingPower = 0 |
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.
Can you confirm that this doesn't break proto
Codecov Report
@@ Coverage Diff @@
## master #6375 +/- ##
==========================================
+ Coverage 60.78% 60.80% +0.01%
==========================================
Files 282 282
Lines 26910 26868 -42
==========================================
- Hits 16358 16336 -22
+ Misses 8839 8824 -15
+ Partials 1713 1708 -5
|
(cherry picked from commit 5bafedf) # Conflicts: # CHANGELOG_PENDING.md # evidence/pool.go # evidence/pool_test.go # evidence/verify.go # evidence/verify_test.go # p2p/shim.go # test/e2e/networks/ci.toml # test/e2e/pkg/testnet.go # test/e2e/runner/evidence.go
This is a non-breaking solution to #6342 where the hashes remain the same.
Specifically, I have removed
fastCheck
and modified theCheckEvidence
function so that the bytes of the evidence are not modified.I have also added some more tests on top of this
Closes: #6326
Closes: #6312
Addresses: #5942