-
-
Notifications
You must be signed in to change notification settings - Fork 410
fix: delayed broadcasting of Voluntary exits #8579
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
base: unstable
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @pheobeayo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant improvement to how voluntary exits are handled by implementing delayed broadcasting. By deferring the network publication of voluntary exits to an operation pool and refining the validation process to separate permanent and transient checks, the system offers a more robust and user-friendly experience. This change specifically benefits DVT and multi-node setups by allowing for early submissions and more graceful handling of pending withdrawals, ultimately enhancing the overall resilience and flexibility of the beacon node. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces delayed broadcasting of voluntary exits, enhancing UX by accepting early submissions and improving DVT/multi-node setup tolerance. The changes involve modifying the submitPoolVoluntaryExit function in packages/beacon-node/src/api/impl/beacon/pool/index.ts to remove immediate network publishing and updating packages/beacon-node/src/chain/validation/voluntaryExit.ts to include a new validation function validateVoluntaryExitForApi for API submissions. The review focuses on correctness and maintainability, ensuring the new logic aligns with the intended behavior and adheres to best practices.
| // Note: Network publishing is now handled by the opPool when conditions are met | ||
| // instead of publishing immediately here |
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 don't see those changes implemented in the PR
| const prioritizeBls = true; | ||
| return validateVoluntaryExit(chain, voluntaryExit, prioritizeBls); | ||
| // For API submissions, we validate signature and permanent conditions | ||
| // Transient conditions will be checked by the opPool before broadcasting |
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.
Transient conditions will be checked by the opPool before broadcasting
doesn't seem to be implemented
|
converting to draft until implementation is more complete |
Motivation
Delayed broadcasting of voluntary exits
Description
This PR handles
Better UX - accepts early submissions
More forgiving for DVT/multi-node setups
post-Electra pending withdrawal checks gracefully
Closes #7431
Steps to test or reproduce
I used Claude to understand some of the concepts needed to fix the issue