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

Update pubsub seen cache to be per epoch instead of per slot #5698

Merged
merged 7 commits into from
Apr 30, 2020

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Apr 30, 2020

Part of #5655

This updates the "seen" cache to be per epoch instead of per slot

Note: I only updated the seen cache to per epoch for aggregated attestation. The unaggregated attestation is still uses per slot because tracking slot + bitfield is CHEAPER than tracking validator index + epoch. Computing validator index requires getting the state from DB which is more expensive

References:
ethereum/consensus-specs#1706
ethereum/consensus-specs#1710

@terencechain terencechain requested a review from a team as a code owner April 30, 2020 18:49
@terencechain terencechain self-assigned this Apr 30, 2020
@terencechain terencechain added the Ready For Review A pull request ready for code review label Apr 30, 2020
rauljordan
rauljordan previously approved these changes Apr 30, 2020
prestonvanloon
prestonvanloon previously approved these changes Apr 30, 2020
@prestonvanloon
Copy link
Member

e2e failure?

@terencechain
Copy link
Member Author

e2e failure?

Yep. Fixed. Updated the description

@codecov
Copy link

codecov bot commented Apr 30, 2020

Codecov Report

Merging #5698 into master will increase coverage by 3.78%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5698      +/-   ##
==========================================
+ Coverage   22.66%   26.44%   +3.78%     
==========================================
  Files         276      239      -37     
  Lines       24033    20892    -3141     
==========================================
+ Hits         5446     5524      +78     
+ Misses      17575    14293    -3282     
- Partials     1012     1075      +63     

@prylabs-bulldozer prylabs-bulldozer bot merged commit fdad7e6 into master Apr 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the dos-against-epoch branch April 30, 2020 22: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.

None yet

3 participants