-
Notifications
You must be signed in to change notification settings - Fork 1.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
fix: early return for packing local deposits when EIP-6110 is applied #14697
fix: early return for packing local deposits when EIP-6110 is applied #14697
Conversation
This seems good sorry for the late response, could you change the changelog to the changelog fragment? it follows our new guidelines. This optimization is just a partial item to #14698 correct? you mentioned some items around the deposit cache as well. |
@james-prysm Sure, done at a2dc7af.
Yes, you're right. |
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.
thanks for this optimization!
What type of PR is this?
Optimization
What does this PR do? Why is it needed?
As mentioned at #14698, a block producer in post-Electra doesn't have to consider the deposit tree from the eth1 logs. All deposits will be delivered directly via execution requests, so it is expected that
packDepositsAndAttestations
will always return the empty list of deposit.This PR addresses a performance issue when a block producer builds a block by returning earlier if EIP-6110 is fully enabled. For the worst case(someone spamming deposit transactions), the proposer should rebuild a deposit tree again and again from unfinalized one, delaying the propagation of the produced block. It seems finalization of deposit matters, but this PR could be the first step to ignoring the deposit cache.
Acknowledgements