lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Avoid accessing full beacon state in PrepareNextSlotScheduler

Open twoeths opened this issue 1 month ago • 0 comments

Problem description

as part of #8650 we should not need the full beacon state in PrepareNextSlotScheduler

Solution description

right now we need a full CachedBeaconStateAllForks in PrepareNextSlotScheduler in order to:

  • get payload attributes
    • get expected withdrawals
    • genesis time
    • epoch
    • randao mix
    • proposer index
    • latest execution payload header block hash
  • slot, epoch
  • randao mix
  • compute and cache its root early

instead of that, we should create a beacon state view as stated here and consume it everywhere

Additional context

No response

twoeths avatar Dec 02 '25 07:12 twoeths