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

Handle skip slots for FFG check points #2044

Merged
merged 2 commits into from
Mar 20, 2019
Merged

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Mar 20, 2019

Do not merge, I'm still working on regression test.

Background:
Slots: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 (each epoch is 8 slots)
Let’s say at the end of 31 we start epoch processing, and we find there's a new justified epoch (epoch 2,
because there's a new justified epoch, we replace the new justified block (the one at the boundary slot 16) with the existing one in DB, but slot 16 happens to be a skip slot, in this case we should just take its ancestor slot 15.

This PR implements the behavior

More info: ethereum/consensus-specs#768

@terencechain terencechain self-assigned this Mar 20, 2019
@codecov
Copy link

codecov bot commented Mar 20, 2019

Codecov Report

Merging #2044 into master will decrease coverage by 0.13%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #2044      +/-   ##
==========================================
- Coverage   70.31%   70.18%   -0.14%     
==========================================
  Files         111      111              
  Lines        8439     8455      +16     
==========================================
  Hits         5934     5934              
- Misses       1906     1919      +13     
- Partials      599      602       +3

@rauljordan rauljordan merged commit 0aae75a into master Mar 20, 2019
@rauljordan rauljordan deleted the skip-block-for-ffg-checkpts branch March 20, 2019 17:19
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.

2 participants