package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Functions

AttestationsDelta computes and returns the rewards and penalties differences for individual validators based on the voting records.
AttestedCurrentEpoch returns true if attestation `a` attested once in current epoch and/or epoch boundary block.
AttestedPrevEpoch returns true if attestation `a` attested once in previous epoch and epoch boundary block and/or the same head.
EligibleForRewards for validator.
EnsureBalancesLowerBound ensures all the balances such as active current epoch, active previous epoch and more have EffectiveBalanceIncrement(1 eth) as a lower bound.
New gets called at the beginning of process epoch cycle to return pre computed instances of validators attesting records and total balances attested in an epoch.
ProcessAttestations process the attestations in state and update individual validator's pre computes, it also tracks and updates epoch attesting balances.
ProcessJustificationAndFinalizationPreCompute processes justification and finalization during epoch processing.
ProcessRewardsAndPenaltiesPrecompute processes the rewards and penalties of individual validator.
ProcessSlashingsPrecompute processes the slashed validators during epoch processing.
ProposersDelta computes and returns the rewards and penalties differences for individual validators based on the proposer inclusion records.
SameHead returns true if attestation `a` attested to the same block by attestation slot in state.
SameTarget returns true if attestation `a` attested to the same target block in state.
UnrealizedCheckpoints returns the justification and finalization checkpoints of the given state as if it was progressed with empty slots until the next epoch.
UpdateBalance updates pre computed balance store.
UpdateValidator updates pre computed validator store.

# Structs

Balance stores the pre computation of the total participated balances for a given epoch Pre computing and storing such record is essential for process epoch optimizations.
Validator stores the pre computation of individual validator's attesting records these records consist of attestation votes, block inclusion record.