-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Electra core transition operations #14001
Conversation
return nil, errors.Wrap(err, "could not process deposit receipts") | ||
} | ||
|
||
if err := electra.ProcessConsolidations(ctx, st, bod.Consolidations()); err != nil { |
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.
why does this not return a state like the other process functions?
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.
@rkapka made me do it 🤣
The better question is why do the other methods return the state when they are mutating the state argument? 🤔
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'm not sure lol
@@ -7,6 +7,5 @@ import ( | |||
) | |||
|
|||
func TestMainnet_Electra_Transition(t *testing.T) { | |||
t.Skip("TODO: Electra") |
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.
Does this work?
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.
no i forgot to skip it
testing/spectest/minimal/electra/fork_transition/transition_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
// ): | ||
// validator.effective_balance = min(balance - balance % EFFECTIVE_BALANCE_INCREMENT, EFFECTIVE_BALANCE_LIMIT) | ||
func ProcessEffectiveBalanceUpdates(state state.BeaconState) error { | ||
// TODO: replace with real implementation |
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.
Coming in #14003
// if is_eligible_for_activation(state, validator): | ||
// validator.activation_epoch = activation_epoch | ||
func ProcessRegistryUpdates(ctx context.Context, state state.BeaconState) (state.BeaconState, error) { | ||
// TODO: replace with real implementation |
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.
Coming in #14005
What type of PR is this?
Feature
What does this PR do? Why is it needed?
taken from the electra-devnet0 branch, and adds some place holders for Electra core transition. subsequent PRs will address the contents of the processing as well as add tests
spec changes can be found https://github.com/ethereum/consensus-specs/tree/dev/specs/electra
Which issues(s) does this PR fix?
Fixes #
Other notes for review