Documentation
¶
Index ¶
- func AddValidatorToRegistry(s abstract.BeaconState, pubkey [48]byte, withdrawalCredentials common.Hash, ...)
- func GetUnslashedIndiciesSet(cfg *clparams.BeaconChainConfig, previousEpoch uint64, ...) [][]bool
- func IsValidDepositSignature(depositData *cltypes.DepositData, cfg *clparams.BeaconChainConfig) (bool, error)
- func ProcessEffectiveBalanceUpdates(s abstract.BeaconState) error
- func ProcessEpoch(s abstract.BeaconState) error
- func ProcessEth1DataReset(s abstract.BeaconState)
- func ProcessHistoricalRootsUpdate(s abstract.BeaconState) error
- func ProcessInactivityScores(s abstract.BeaconState, eligibleValidatorsIndicies []uint64, ...) error
- func ProcessJustificationBitsAndFinality(s abstract.BeaconState, unslashedParticipatingIndicies [][]bool) error
- func ProcessParticipationFlagUpdates(state abstract.BeaconState)
- func ProcessParticipationRecordUpdates(s abstract.BeaconState) error
- func ProcessPendingConsolidations(s abstract.BeaconState)
- func ProcessPendingDeposits(s abstract.BeaconState)
- func ProcessRandaoMixesReset(s abstract.BeaconState)
- func ProcessRegistryUpdates(s abstract.BeaconState) error
- func ProcessRewardsAndPenalties(s abstract.BeaconState, eligibleValidators []uint64, ...) error
- func ProcessSlashings(s abstract.BeaconState) error
- func ProcessSlashingsReset(s abstract.BeaconState)
- func ProcessSyncCommitteeUpdate(s abstract.BeaconState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddValidatorToRegistry ¶
func GetUnslashedIndiciesSet ¶
func GetUnslashedIndiciesSet(cfg *clparams.BeaconChainConfig, previousEpoch uint64, validatorSet *solid.ValidatorSet, previousEpochParticipation *solid.ParticipationBitList) [][]bool
func IsValidDepositSignature ¶
func IsValidDepositSignature( depositData *cltypes.DepositData, cfg *clparams.BeaconChainConfig) (bool, error)
func ProcessEffectiveBalanceUpdates ¶
func ProcessEffectiveBalanceUpdates(s 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 ProcessPendingConsolidations ¶
func ProcessPendingConsolidations(s abstract.BeaconState)
func ProcessPendingDeposits ¶
func ProcessPendingDeposits(s abstract.BeaconState)
func ProcessRandaoMixesReset ¶
func ProcessRandaoMixesReset(s abstract.BeaconState)
func ProcessRegistryUpdates ¶
func ProcessRegistryUpdates(s abstract.BeaconState) error
ProcessRegistryUpdates 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(s 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.
Source Files
¶
- finalization_and_justification.go
- process_effective_balance_update.go
- process_epoch.go
- process_historical_roots.go
- process_historical_roots_update.go
- process_inactivity_scores.go
- process_pending_consolidations.go
- process_pending_deposits.go
- process_registry_updates.go
- process_rewards_and_penalties.go
- process_slashings.go
- process_sync_committee_update.go
- resets.go
- utils.go