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

Ensure balances remain unchanged for optimal validators during leak #1830

Merged
merged 3 commits into from
May 20, 2020

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented May 20, 2020

Address #1370 to preserve the design goal of "if attesting perfectly during an inactivity leak, your balance remains unchanged"

Approach: During an inactivity leak, do not scale base rewards by participation so that they perfectly cancel out with the baseline penalties applied for the inactivity leak (not including the actual quadratic leak portion).

@q9f
Copy link
Contributor

q9f commented May 20, 2020

Does this go into v0.12?

@djrtwo
Copy link
Contributor Author

djrtwo commented May 20, 2020

Yes @q9f, we chatted with client teams yesterday before deciding on inclusion here.
The consensus was this is a valuable enough fix for users to get it in. We also have a ton of new rewards/penalties tests so teams are expecting maybe a bug or two and having to open up that part of the code base.

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

specs/phase0/beacon-chain.md Outdated Show resolved Hide resolved
specs/phase0/beacon-chain.md Outdated Show resolved Hide resolved
tests/core/pyspec/eth2spec/test/helpers/rewards.py Outdated Show resolved Hide resolved
@djrtwo
Copy link
Contributor Author

djrtwo commented May 20, 2020

All feedback addressed @hwwhww

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

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.

None yet

3 participants