-
Notifications
You must be signed in to change notification settings - Fork 998
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
Add EIP-7251 spec: Increase MAX_EFFECTIVE_BALANCE #3618
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
668e447
Add EIP-7251 spec
dapplion c5af391
Add validator doc
dapplion fc65a6f
Fix CI
dapplion cf70df2
Address Comments and Cleanup Spec
ethDreamer f6359f9
Fix Bug in process_pending_balance_deposits
ethDreamer 7c9fc19
Merge pull request #4 from ethDreamer/eip-7251
dapplion fe35d66
Remove built spec
mkalinin 98f38c7
Introduce MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD
mkalinin cdbc2b7
Fix linter
mkalinin 6d140cd
Fix MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD in mainnet.yaml
mkalinin b02c3e5
Check MAX_PARTIAL_WITHDRAWALS_PER_PAYLOAD < MAX_WITHDRAWALS_PER_PAYLOAD
mkalinin be79aab
Fix toc
mkalinin a127bbf
Merge branch 'dev' into eip-7251
mkalinin 17d65ca
Create eip7251 config invariants test
mkalinin d48b5e0
Update whistleblower reward for eip7251
mkalinin 8873d02
Fix linter
mkalinin 45f98d6
Set MIN_SLASHING_PENALTY_QUOTIENT_EIP7251=4096
mkalinin ebdb513
queue_excess_active_balance
dapplion 6d9ebe1
set_compounding_withdrawal_credentials
dapplion 84a5ae9
rename to partial_withdrawals_count
dapplion 72c4f04
@ensi321 review
dapplion 08732e6
fix typo
dapplion 4e7c82c
Remove is_aggregator changes
dapplion 8d7d7a8
add tests
fradamt 97966d8
small fixes
fradamt 4775641
fix broken pending deposits tests and typo
fradamt 83e617a
Merge pull request #5 from fradamt/eip-7251
dapplion 23ad85e
Allow to switch to compounding validator on deposit
dapplion e6aaa9d
Fix lint
dapplion 06104f2
Fix is_partially_withdrawable_validator
mkalinin 5e32d44
Fix the sweep by enabling 0x02 creds
mkalinin 73ede3a
Fix pending_balance_to_withdraw == 0 check when full exit
mkalinin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
feels clearer to just say:
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.
It feels confusing to use both
MAX_EFFECTIVE_BALANCE
andMAX_EFFECTIVE_BALANCE_EIP7251
in the same file. What do you think about adding a duplicateMAX_EFFECTIVE_BALANCE_PRE_EIP7251 := 32
?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.
I agree with that, maybe
MAX_EFFECTIVE_BALANCE_PHASE0
? The other question: if we have this variable explicitly defined, can it replaceMIN_ACTIVATION_BALANCE
? Semantically these are two different things but practically having a single parameter slightly increases readability. So, I am slightly in favour of replacingMIN_ACTIVATION_BALANCE
withMAX_EFFECTIVE_BALANCE_PHASE0
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.
oh yeah using
MIN_ACTIVATION_BALANCE
looks better to me 👍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.
So you suggest the opposite, to replace
MAX_EFFECTIVE_BALANCE
withMIN_ACTIVATION_BALANCE
everywhere in the spec? I am fine with either, as long as we use the same param name in all placesThere 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.
If the two options are replacing
MIN_ACTIVATION_BALANCE
withMAX_EFFECTIVE_BALANCE_PHASE0
or replacingMAX_EFFECTIVE_BALANCE
withMIN_ACTIVATION_BALANCE
, I would prefer the latter, becauseMIN_ACTIVATION_BALANCE
accurately represents what this parameter is in the current systemThere 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.
Not in every case, it is also a max effective balance for 0x01 creds. And when we want to get MAXEB of a particular validator it makes more sense to use
MAX_EFFECTIVE_BALANCE_PHASE) and *_EIP7251
. But again, I am fine with either, just don’t want to haveMAX_EB
,MIN_AB
andMAX_EB_EIP7251
in the spec as this is really confusing.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.
For bumped constants in the past we have used:
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.
Given that
MAX_EFFECTIVE_BALANCE
(the phase 0 one) is a constant that we are still using, as opposed toINACTIVITY_PENALTY_QUOTIENT
which was fully replaced, I think it makes sense to not follow this convention. I think following it would give the impression thatMAX_EFFECTIVE_BALANCE_ELECTRA
(or whatever it ends up being) replacesMAX_EFFECTIVE_BALANCE
fully.For this reason, I'd still lean towards using
MIN_ACTIVATION_BALANCE
only. While it is true that it is also used for the max effective balance of 0x00 and 0x01 credentials, this is similar to what happened in phase0 already, i.e.,MAX_EFFECTIVE_BALANCE
was used as the min activation balance as well.