transition

package
v0.0.0-...-92d349b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessAttestations

func ProcessAttestations(state *state.BeaconState, attestations []*cltypes.Attestation, fullValidation bool) error

func ProcessAttesterSlashing

func ProcessAttesterSlashing(state *state.BeaconState, attSlashing *cltypes.AttesterSlashing) error

func ProcessBlockHeader

func ProcessBlockHeader(state *state.BeaconState, block *cltypes.BeaconBlock, fullValidation bool) error

func ProcessBlsToExecutionChange

func ProcessBlsToExecutionChange(state *state.BeaconState, signedChange *cltypes.SignedBLSToExecutionChange, fullValidation bool) error

ProcessBlsToExecutionChange processes a BLSToExecutionChange message by updating a validator's withdrawal credentials.

func ProcessDeposit

func ProcessDeposit(state *state.BeaconState, deposit *cltypes.Deposit, fullValidation bool) error

func ProcessEffectiveBalanceUpdates

func ProcessEffectiveBalanceUpdates(state *state.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(state *state.BeaconState) error

ProcessEpoch process epoch transition.

func ProcessEth1Data

func ProcessEth1Data(state *state.BeaconState, eth1Data *cltypes.Eth1Data) error

func ProcessEth1DataReset

func ProcessEth1DataReset(state *state.BeaconState)

func ProcessExecutionPayload

func ProcessExecutionPayload(state *state.BeaconState, payload *cltypes.Eth1Block) error

ProcessExecutionPayload sets the latest payload header accordinly.

func ProcessHistoricalRootsUpdate

func ProcessHistoricalRootsUpdate(state *state.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(state *state.BeaconState) error

ProcessInactivityScores will updates the inactivity registry of each validator.

func ProcessJustificationBitsAndFinality

func ProcessJustificationBitsAndFinality(state *state.BeaconState) error

func ProcessParticipationFlagUpdates

func ProcessParticipationFlagUpdates(state *state.BeaconState)

func ProcessParticipationRecordUpdates

func ProcessParticipationRecordUpdates(state *state.BeaconState) error

func ProcessProposerSlashing

func ProcessProposerSlashing(state *state.BeaconState, propSlashing *cltypes.ProposerSlashing) error

func ProcessRandao

func ProcessRandao(state *state.BeaconState, randao [96]byte, proposerIndex uint64, fullValidation bool) error

func ProcessRandaoMixesReset

func ProcessRandaoMixesReset(state *state.BeaconState)

func ProcessRegistryUpdates

func ProcessRegistryUpdates(state *state.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(state *state.BeaconState) error

ProcessRewardsAndPenalties applies rewards/penalties accumulated during previous epoch.

func ProcessSlashings

func ProcessSlashings(state *state.BeaconState) error

func ProcessSlashingsReset

func ProcessSlashingsReset(state *state.BeaconState)

func ProcessSlots

func ProcessSlots(state *state.BeaconState, slot uint64) error

func ProcessSyncAggregate

func ProcessSyncAggregate(state *state.BeaconState, sync *cltypes.SyncAggregate, fullValidation bool) error

func ProcessSyncCommitteeUpdate

func ProcessSyncCommitteeUpdate(state *state.BeaconState) error

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

func ProcessVoluntaryExit

func ProcessVoluntaryExit(state *state.BeaconState, signedVoluntaryExit *cltypes.SignedVoluntaryExit, fullValidation bool) error

ProcessVoluntaryExit takes a voluntary exit and applies state transition.

func ProcessWithdrawals

func ProcessWithdrawals(state *state.BeaconState, withdrawals types.Withdrawals, fullValidation bool) error

ProcessWithdrawals processes withdrawals by decreasing the balance of each validator and updating the next withdrawal index and validator index.

func TransitionState

func TransitionState(state *state.BeaconState, block *cltypes.SignedBeaconBlock, fullValidation bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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