statechange

package
v0.0.0-...-1f8a15b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnslashedIndiciesSet

func GetUnslashedIndiciesSet(s abstract.BeaconState) [][]bool

func ProcessEffectiveBalanceUpdates

func ProcessEffectiveBalanceUpdates(state abstract.BeaconState) error

ProcessEffectiveBalanceUpdates updates the effective balance of validators. Specs at: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#effective-balances-updates

func ProcessEpoch

func ProcessEpoch(s abstract.BeaconState) error

ProcessEpoch process epoch transition.

func ProcessEth1DataReset

func ProcessEth1DataReset(s abstract.BeaconState)

func ProcessHistoricalRootsUpdate

func ProcessHistoricalRootsUpdate(s abstract.BeaconState) error

ProcessHistoricalRootsUpdate updates the historical root data structure by computing a new historical root batch when it is time to do so.

func ProcessInactivityScores

func ProcessInactivityScores(s abstract.BeaconState, eligibleValidatorsIndicies []uint64, unslashedIndicies [][]bool) error

ProcessInactivityScores will updates the inactivity registry of each validator.

func ProcessJustificationBitsAndFinality

func ProcessJustificationBitsAndFinality(s abstract.BeaconState, unslashedParticipatingIndicies [][]bool) error

func ProcessParticipationFlagUpdates

func ProcessParticipationFlagUpdates(state abstract.BeaconState)

func ProcessParticipationRecordUpdates

func ProcessParticipationRecordUpdates(s abstract.BeaconState) error

func ProcessRandaoMixesReset

func ProcessRandaoMixesReset(s abstract.BeaconState)

func ProcessRegistryUpdates

func ProcessRegistryUpdates(s abstract.BeaconState) error

ProcessRegistyUpdates updates every epoch the activation status of validators. Specs at: https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#registry-updates.

func ProcessRewardsAndPenalties

func ProcessRewardsAndPenalties(s abstract.BeaconState, eligibleValidators []uint64, unslashedIndicies [][]bool) error

ProcessRewardsAndPenalties applies rewards/penalties accumulated during previous epoch.

func ProcessSlashings

func ProcessSlashings(state abstract.BeaconState) error

func ProcessSlashingsReset

func ProcessSlashingsReset(s abstract.BeaconState)

func ProcessSyncCommitteeUpdate

func ProcessSyncCommitteeUpdate(s abstract.BeaconState) error

ProcessSyncCommitteeUpdate implements processing for the sync committee update. unfortunately there is no easy way to test it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL