Documentation ¶
Index ¶
- func ProcessAttestations(state *state.BeaconState, attestations []*cltypes.Attestation, ...) error
- func ProcessAttesterSlashing(state *state.BeaconState, attSlashing *cltypes.AttesterSlashing) error
- func ProcessBlockHeader(state *state.BeaconState, block *cltypes.BeaconBlock, fullValidation bool) error
- func ProcessBlsToExecutionChange(state *state.BeaconState, signedChange *cltypes.SignedBLSToExecutionChange, ...) error
- func ProcessDeposit(state *state.BeaconState, deposit *cltypes.Deposit, fullValidation bool) error
- func ProcessEffectiveBalanceUpdates(state *state.BeaconState) error
- func ProcessEpoch(state *state.BeaconState) error
- func ProcessEth1Data(state *state.BeaconState, eth1Data *cltypes.Eth1Data) error
- func ProcessEth1DataReset(state *state.BeaconState)
- func ProcessExecutionPayload(state *state.BeaconState, payload *cltypes.Eth1Block) error
- func ProcessHistoricalRootsUpdate(state *state.BeaconState) error
- func ProcessInactivityScores(state *state.BeaconState) error
- func ProcessJustificationBitsAndFinality(state *state.BeaconState) error
- func ProcessParticipationFlagUpdates(state *state.BeaconState)
- func ProcessParticipationRecordUpdates(state *state.BeaconState) error
- func ProcessProposerSlashing(state *state.BeaconState, propSlashing *cltypes.ProposerSlashing) error
- func ProcessRandao(state *state.BeaconState, randao [96]byte, proposerIndex uint64, ...) error
- func ProcessRandaoMixesReset(state *state.BeaconState)
- func ProcessRegistryUpdates(state *state.BeaconState) error
- func ProcessRewardsAndPenalties(state *state.BeaconState) error
- func ProcessSlashings(state *state.BeaconState) error
- func ProcessSlashingsReset(state *state.BeaconState)
- func ProcessSlots(state *state.BeaconState, slot uint64) error
- func ProcessSyncAggregate(state *state.BeaconState, sync *cltypes.SyncAggregate, fullValidation bool) error
- func ProcessSyncCommitteeUpdate(state *state.BeaconState) error
- func ProcessVoluntaryExit(state *state.BeaconState, signedVoluntaryExit *cltypes.SignedVoluntaryExit, ...) error
- func ProcessWithdrawals(state *state.BeaconState, withdrawals types.Withdrawals, fullValidation bool) error
- func TransitionState(state *state.BeaconState, block *cltypes.SignedBeaconBlock, ...) error
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 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 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.
Source Files ¶
- block_transition.go
- finalization_and_justification.go
- operations.go
- process_attestations.go
- process_bls_to_execution_change.go
- process_effective_balance_update.go
- process_epoch.go
- process_inactivity_scores.go
- process_registry_updates.go
- process_rewards_and_penalties.go
- process_slashings.go
- process_slots.go
- process_sync_aggregate.go
- process_sync_committee_update.go
- processing.go
- resets.go