lodestar
lodestar copied to clipboard
Use ShufflingCache instead of EpochCache for shuffling data
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 https://github.com/ChainSafe/lodestar/blob/a8c0c7a156d0fe25962bcddc58eec268ca3a8b41/packages/beacon-node/src/api/impl/beacon/state/index.ts#L270
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