Skip to content

Add test for checking builder index reuse#5296

Merged
jtraglia merged 2 commits into
ethereum:masterfrom
pawanjay176:builder-reuse-deposit-test
May 28, 2026
Merged

Add test for checking builder index reuse#5296
jtraglia merged 2 commits into
ethereum:masterfrom
pawanjay176:builder-reuse-deposit-test

Conversation

@pawanjay176
Copy link
Copy Markdown
Contributor

Adds a new test for gloas parent execution payload processing.

The test covers a same-batch builder deposit edge case where a reusable zero-balance builder slot is first topped up, then followed by a new builder deposit. The expected behavior is that the topped-up builder keeps its slot and the new builder is assigned a different index.

To be clear, this is not an issue with a spec. Its a potential regression that can happen when optimising the process_deposit_request path.
Found this edge case when optimising builder deposits verification in lighthouse. See sigp/lighthouse#9311 (comment)

Confirmed that the test was failing before the fix in lighthouse and passes after the fix.

@github-actions github-actions Bot added the testing CI, actions, tests, testing infra label May 26, 2026
@pawanjay176 pawanjay176 changed the title Add a test for checking builder index reuse in process_deposit_request Add test for checking builder index reuse May 26, 2026
@brech1 brech1 self-requested a review May 26, 2026 22:20
Copy link
Copy Markdown
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

Nice, this looks great. Thank you!

@jtraglia jtraglia merged commit 5898db9 into ethereum:master May 28, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants