mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
628f52dd6c
Added changesets for beacon chain to implement memory efficient fork choice
39 lines
1.7 KiB
Go
39 lines
1.7 KiB
Go
package state
|
|
|
|
type StateLeafIndex uint
|
|
|
|
// All position of all the leaves of the state merkle tree.
|
|
const (
|
|
GenesisTimeLeafIndex StateLeafIndex = 0
|
|
GenesisValidatorsRootLeafIndex StateLeafIndex = 1
|
|
SlotLeafIndex StateLeafIndex = 2
|
|
ForkLeafIndex StateLeafIndex = 3
|
|
LatestBlockHeaderLeafIndex StateLeafIndex = 4
|
|
BlockRootsLeafIndex StateLeafIndex = 5
|
|
StateRootsLeafIndex StateLeafIndex = 6
|
|
HistoricalRootsLeafIndex StateLeafIndex = 7
|
|
Eth1DataLeafIndex StateLeafIndex = 8
|
|
Eth1DataVotesLeafIndex StateLeafIndex = 9
|
|
Eth1DepositIndexLeafIndex StateLeafIndex = 10
|
|
ValidatorsLeafIndex StateLeafIndex = 11
|
|
BalancesLeafIndex StateLeafIndex = 12
|
|
RandaoMixesLeafIndex StateLeafIndex = 13
|
|
SlashingsLeafIndex StateLeafIndex = 14
|
|
PreviousEpochParticipationLeafIndex StateLeafIndex = 15
|
|
CurrentEpochParticipationLeafIndex StateLeafIndex = 16
|
|
JustificationBitsLeafIndex StateLeafIndex = 17
|
|
PreviousJustifiedCheckpointLeafIndex StateLeafIndex = 18
|
|
CurrentJustifiedCheckpointLeafIndex StateLeafIndex = 19
|
|
FinalizedCheckpointLeafIndex StateLeafIndex = 20
|
|
// Altair
|
|
InactivityScoresLeafIndex StateLeafIndex = 21
|
|
CurrentSyncCommitteeLeafIndex StateLeafIndex = 22
|
|
NextSyncCommitteeLeafIndex StateLeafIndex = 23
|
|
// Bellatrix
|
|
LatestExecutionPayloadHeaderLeafIndex StateLeafIndex = 24
|
|
// Capella
|
|
NextWithdrawalIndexLeafIndex StateLeafIndex = 25
|
|
NextWithdrawalValidatorIndexLeafIndex StateLeafIndex = 26
|
|
HistoricalSummariesLeafIndex StateLeafIndex = 27
|
|
)
|