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

Voting With The Majority #6644

Merged
merged 15 commits into from
Jul 28, 2020

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jul 19, 2020

What type of PR is this?

Feature

What does this PR do? Why is it needed?

The aim of this PR is to enhance the proposer with a new voting algorithm as described here: https://hackmd.io/@prestonvanloon/H1rfsG5iH#Voting-With-The-Majority

Which issues(s) does this PR fix?

Fixes #4117

Other notes for review

There are some TODOs in the code because I need clarification on a couple of things. I would rather not guess how things should work by myself.

@rkapka rkapka requested a review from a team as a code owner July 19, 2020 22:26
@rkapka rkapka marked this pull request as draft July 19, 2020 22:27
@prestonvanloon
Copy link
Member

I've just noticed that this bit of logic was removed from the spec earlier this year in ethereum/consensus-specs#1553.

When should look into why the spec is recommending to immediately vote with the majority, even if there is only a single vote.
Here's a bit more on the discussion: ethereum/consensus-specs#1537

@rkapka rkapka marked this pull request as ready for review July 22, 2020 14:45
@codecov
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #6644 into master will decrease coverage by 0.08%.
The diff coverage is 68.88%.

@@            Coverage Diff             @@
##           master    #6644      +/-   ##
==========================================
- Coverage   62.46%   62.37%   -0.09%     
==========================================
  Files         384      383       -1     
  Lines       29583    29419     -164     
==========================================
- Hits        18479    18351     -128     
- Misses       8466     8483      +17     
+ Partials     2638     2585      -53     

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.

ETH1Data majority preference voting
5 participants