Skip to content
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

Merged
merged 4 commits into from
Oct 5, 2018
Merged

Conversation

ValarDragon
Copy link
Contributor

Closes #2477

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests - I'm surprised we had no integration tests for this.
  • Updated CHANGELOG_PENDING.md

@codecov-io
Copy link

codecov-io commented Sep 29, 2018

Codecov Report

Merging #2512 into develop will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             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
Impacted Files Coverage Δ
consensus/state.go 77.22% <0%> (-0.95%) ⬇️
consensus/reactor.go 72.6% <0%> (-0.78%) ⬇️
tools/tm-bench/main.go 0% <0%> (ø) ⬆️

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰 🌮 🦀

Copy link
Contributor

@ebuchman ebuchman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -55,6 +55,9 @@ type Validator struct {
}
```

When hashing the Validator struct, the pubkey is not hashed,
Copy link
Contributor

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?!

Copy link
Contributor Author

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

@ebuchman ebuchman merged commit dfda7b4 into develop Oct 5, 2018
@ebuchman ebuchman deleted the dev/rem_val_pubkey branch October 5, 2018 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants