-
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: Remove pubkey from validator hash #2512
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2512 +/- ##
===========================================
- Coverage 61.32% 61.29% -0.04%
===========================================
Files 202 202
Lines 16720 16706 -14
===========================================
- Hits 10254 10240 -14
+ Misses 5598 5596 -2
- Partials 868 870 +2
|
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.
🍰 🌮 🦀
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.
Need to update the spec: https://github.com/tendermint/tendermint/blob/develop/docs/spec/blockchain/state.md#validator
c97d5c7
to
f900e34
Compare
@@ -55,6 +55,9 @@ type Validator struct { | |||
} | |||
``` | |||
|
|||
When hashing the Validator struct, the pubkey is not hashed, |
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.
Lol, why not just remove it from the struct in the spec like in the code?!
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.
Its still in the code, its just not hashed
Closes #2477