Skip to content

Optimisations relating to get_expected_withdrawals#9314

Open
michaelsproul wants to merge 5 commits into
sigp:unstablefrom
michaelsproul:get-expected-withdrawals-optimisation
Open

Optimisations relating to get_expected_withdrawals#9314
michaelsproul wants to merge 5 commits into
sigp:unstablefrom
michaelsproul:get-expected-withdrawals-optimisation

Conversation

@michaelsproul
Copy link
Copy Markdown
Member

Issue Addressed

Tweaking/optimising get_expected_withdrawals on the pre-Gloas path, after the removal of some optimisations in:

Proposed Changes

  • Remove prepare_beacon_proposer calls from register_validator. These calls were: heavily duplicated, happening too early (at the start of the slot before the block arrived), expensive on epoch boundaries (forcing an early epoch transition), and unnecessary. They are completely safe to remove because the scheduled proposer preparation routine exists.
  • Instrument get_expected_withdrawals/prepare_beacon_proposer to find more unexpected callers.

Additional Info

K-37

@michaelsproul michaelsproul added the optimization Something to make Lighthouse run more efficiently. label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimization Something to make Lighthouse run more efficiently.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants