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

Fix Off By One Attestation Bug #1619

Merged
merged 26 commits into from
Feb 17, 2019

Conversation

terencechain
Copy link
Member

This is part of #1542 bug fixes

In this PR we fixes the by one attestation issue as referenced in:
ethereum/consensus-specs#627
ethereum/consensus-specs#618

@terencechain terencechain added Bug Something isn't working Ready For Review A pull request ready for code review labels Feb 16, 2019
@terencechain terencechain self-assigned this Feb 16, 2019
@codecov
Copy link

codecov bot commented Feb 16, 2019

Codecov Report

Merging #1619 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1619   +/-   ##
======================================
  Coverage    71.1%   71.1%           
======================================
  Files          94      94           
  Lines        6618    6618           
======================================
  Hits         4706    4706           
  Misses       1502    1502           
  Partials      410     410

…smaticlabs/prysm into fix-off-by-one-attestation-issue-627
@rauljordan
Copy link
Contributor

How come this wasn't caught by tests?

@terencechain
Copy link
Member Author

How come this wasn't caught by tests?

How to reproduce this:
1.) attestation.data.slot % EPOCH_LENGTH == 0
2.) let epoch state update to not happen
3.) get_epoch_start_slot returns a new slot from a new epoch (rather than previous epoch)

It's not so much of a unit test regression, it's more so a e2e test regression, our e2e test suite is quite minimal we will need to enhance it

@terencechain terencechain merged commit 26961d4 into master Feb 17, 2019
@nisdas nisdas deleted the fix-off-by-one-attestation-issue-627 branch April 20, 2019 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants