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

Added block production restrictions for electra #9017

Merged
merged 4 commits into from
Jan 21, 2025

Conversation

rolfyone
Copy link
Contributor

@rolfyone rolfyone commented Jan 21, 2025

voluntary exits should not be included in a block if

  • they have a withdrawal pending (thats invalid)

The pending withdrawal was pointed out in devnet5, so this resolves that.

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

voluntary exits should not be included in a block if
 - they have a withdrawal pending (thats invalid)
 - they have a pending deposit (looking to make that invalid)

The pending withdrawal was pointed out in devnet5, so this resolves that.

The pending deposit is less cheap than i'd like ,but im fairly sure it'd potentially lead to some bad state data that we don't really want (eg. potentially depositing onto a withdrawn validator, so a withdrawn validator ending up with non 0 balance).

Signed-off-by: Paul Harris <[email protected]>
@rolfyone
Copy link
Contributor Author

i was convinced that deposit queue is not a problem so removed that check.

Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM

@tbenr tbenr enabled auto-merge (squash) January 21, 2025 12:12
@tbenr tbenr merged commit 35610f6 into Consensys:master Jan 21, 2025
16 checks passed
@rolfyone rolfyone deleted the block-invalid-electra branch January 21, 2025 22:44
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.

2 participants