Skip to content

Use ShufflingCache instead of EpochCache for shuffling data #8655

@twoeths

Description

@twoeths

Problem description

as stated in #8650 once we move to native state transition we will not have EpochCache anymore

Solution description

remove below methods on EpochCache and switch to ShufflingCache instead following this pattern

const decisionRoot = stateCached.epochCtx.getShufflingDecisionRoot(epoch);

TLDR:

  • get decision root hex from IBeaconStateView given an epoch
  • use ShufflingCache to get a shuffling instead

the list includes:

  • getIndexedAttestation
  • getAttestingIndices
  • getCommitteeAssignments
  • getCommitteeAssignment
  • getShufflingAtSlot
  • getShufflingAtSlotOrNull
  • getShufflingAtEpoch
  • getShufflingAtEpochOrNull

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions