-
Notifications
You must be signed in to change notification settings - Fork 1.1k
cleanup: breaking up expected withdrawals into smaller functions #15194
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: develop
Are you sure you want to change the base?
Conversation
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.
LGTM, you could independently test some of the functions, but I think it's fine with the existing Electra tests.
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.
LGTM
} | ||
processedPartialWithdrawalsCount++ | ||
} | ||
return withdrawals, withdrawalIndex, processedPartialWithdrawalsCount, 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.
this is pretty ugly returning so many values
} | ||
|
||
func (b *BeaconState) processPendingPartialWithdrawals(withdrawals []*enginev1.Withdrawal) ([]*enginev1.Withdrawal, uint64, uint64, error) { | ||
withdrawalIndex := b.nextWithdrawalIndex |
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.
this part is redefining already existing variables , this is safe for this function but must be considered for future changes
What type of PR is this?
Other
What does this PR do? Why is it needed?
just some cleanup review feedback that I'm breaking out into a separate PR
Which issues(s) does this PR fix?
Fixes #
Other notes for review
Acknowledgements