Skip to content

Avoid accessing full beacon state in PrepareNextSlotScheduler #8651

@twoeths

Description

@twoeths

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicIssues used as milestones and tracking multiple issues.meta-feature-requestIssues to track feature requests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions