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 deposit block slot before genesis state #4495
Fix deposit block slot before genesis state #4495
Conversation
There are some additional nuances that need to be considered here:
That said, the function should remain relatively simple because it can be called many times. If will result in too high a CPU load it may make sense for the pre-genesis version the calculation to ignore the additional validators in the Ethereum 1 block after |
Codecov Report
@@ Coverage Diff @@
## master #4495 +/- ##
=========================================
Coverage ? 19.02%
=========================================
Files ? 165
Lines ? 10623
Branches ? 0
=========================================
Hits ? 2021
Misses ? 8249
Partials ? 353 |
@terencechain Can you please review this? |
@princesinha19 thanks for adding the test, it looks good. e2e tests failed, something to look into |
@terencechain It's working now. Actually it was not an issue. I don't know exactly why the e2e test failed with error:-
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thanks 👍🏼
@terencechain Should we merge this? |
* before genesis state commit * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot * depositBlockSlot test added * Merge branch 'deposit-block-slot' of https://github.com/princesinha19/prysm into deposit-block-slot * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot * resolve conflict * status test commit * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot
* before genesis state commit * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot * depositBlockSlot test added * Merge branch 'deposit-block-slot' of https://github.com/princesinha19/prysm into deposit-block-slot * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot * resolve conflict * status test commit * Merge branch 'master' into deposit-block-slot * Merge branch 'master' into deposit-block-slot
This PR fixes the incorrect result for depositBlockSlot() before the genesis state.
[Resolves] #4465