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 validator assignments on slot 0 #4682

Merged
merged 7 commits into from Jan 29, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Jan 29, 2020

Currently, assignments at slot 0 are broken. No assignments will be given for slot 0, including attestations which is the normal act. This results in 2 committees being penalized on genesis, having to deal with an effective balance of 31 until they bring their balance up to 32.5.

Also added a regression test to make sure slot 0 doesn't have this issue again.

@0xKiwi 0xKiwi added the Ready For Review A pull request ready for code review label Jan 29, 2020
@0xKiwi 0xKiwi requested review from prestonvanloon, terencechain, rauljordan and nisdas and removed request for prestonvanloon January 29, 2020 04:14
terencechain
terencechain previously approved these changes Jan 29, 2020
@codecov
Copy link

codecov bot commented Jan 29, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@fd02c45). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #4682   +/-   ##
=========================================
  Coverage          ?   27.07%           
=========================================
  Files             ?      223           
  Lines             ?    15754           
  Branches          ?        0           
=========================================
  Hits              ?     4265           
  Misses            ?    10756           
  Partials          ?      733

@prylabs-bulldozer prylabs-bulldozer bot merged commit 3e9bf58 into prysmaticlabs:master Jan 29, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
* Fix validator acting upon first slot
* Change log to debug
* Fix roles at slot 0
* Merge branch 'master' of https://github.com/prysmaticlabs/Prysm into fix-val
* Add regression test
* Formatting
* Add slot ticker regression test
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
* Fix validator acting upon first slot
* Change log to debug
* Fix roles at slot 0
* Merge branch 'master' of https://github.com/prysmaticlabs/Prysm into fix-val
* Add regression test
* Formatting
* Add slot ticker regression test
@0xKiwi 0xKiwi deleted the fix-val branch March 15, 2020 15:04
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

2 participants