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

Verify eth1data vote in E2E #7551

Merged
merged 7 commits into from
Oct 19, 2020
Merged

Verify eth1data vote in E2E #7551

merged 7 commits into from
Oct 19, 2020

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Oct 16, 2020

What type of PR is this?

E2E improvement

What does this PR do? Why is it needed?

Adds an evaluator to verify that validators are voting for the correct eth1data block, according to the majority vote algorithm.

Which issues(s) does this PR fix?

N/A

Other notes for review

The logic is very simple. If we follow the majority, then all proposers after the initial proposer in a voting period should follow the initial proposer's vote.

I am not happy that there is one "hack" in place for epoch 1. I tried to document it as clearly as possible.

@rkapka rkapka requested a review from a team as a code owner October 16, 2020 12:08
@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #7551 into master will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #7551      +/-   ##
==========================================
- Coverage   61.74%   61.61%   -0.14%     
==========================================
  Files         424      424              
  Lines       29884    29897      +13     
==========================================
- Hits        18452    18420      -32     
- Misses       8473     8510      +37     
- Partials     2959     2967       +8     

@rkapka rkapka added E2E Ready For Review A pull request ready for code review labels Oct 16, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit dccf099 into master Oct 19, 2020
@delete-merged-branch delete-merged-branch bot deleted the e2e-majority-vote branch October 19, 2020 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants