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

Attestation proposing: more tests #7267

Merged
merged 7 commits into from
Sep 18, 2020
Merged

Conversation

farazdagi
Copy link
Contributor

@farazdagi farazdagi commented Sep 18, 2020

What type of PR is this?

Feature / Improves att profitability

What does this PR do? Why is it needed?

  • Improves profitability by:
    • Selecting earliest validators' votes only: if validator have their vote logged in some other aggregate already, it will not be included twice -- making double votes in proposed blocks possible only if validator submits votes in different committees.
    • Selecting most populous aggregates

After discussion with @terencechain this PR will include:

  • Extended test suite
  • Minor change to att selection (aggregates will be sorted)

Which issues(s) does this PR fix?

Closes #4507

Other notes for review

@farazdagi farazdagi self-assigned this Sep 18, 2020
@farazdagi farazdagi changed the title Optimizes attestation proposing mechanism Attestation proposing more tests Sep 18, 2020
@farazdagi farazdagi changed the title Attestation proposing more tests Attestation proposing: more tests Sep 18, 2020
@farazdagi farazdagi marked this pull request as ready for review September 18, 2020 16:39
@farazdagi farazdagi requested a review from a team as a code owner September 18, 2020 16:39
@farazdagi farazdagi added OK to merge Ready For Review A pull request ready for code review labels Sep 18, 2020
@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #7267 into master will increase coverage by 0.03%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##           master    #7267      +/-   ##
==========================================
+ Coverage   59.38%   59.41%   +0.03%     
==========================================
  Files         418      419       +1     
  Lines       29961    29963       +2     
==========================================
+ Hits        17793    17804      +11     
+ Misses       9255     9247       -8     
+ Partials     2913     2912       -1     

@prylabs-bulldozer prylabs-bulldozer bot merged commit c8b91ba into master Sep 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the optimize-att-proposer branch September 18, 2020 17:16
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.

Optimize proposer attestation inclusion
2 participants