package
0.3.10
Repository: https://github.com/flashbots/prysm.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AttestingBalance returns the total balance from all the attesting indices.
BaseReward takes state and validator index and calculate individual validator's base reward quotient.
ProcessFinalUpdates processes the final updates during epoch processing.
ProcessRegistryUpdates rotates validators in and out of active pool.
ProcessSlashings processes the slashed validators during epoch processing, def process_slashings(state: BeaconState) -> None: epoch = get_current_epoch(state) total_balance = get_total_active_balance(state) for index, validator in enumerate(state.validators): if validator.slashed and epoch + EPOCHS_PER_SLASHINGS_VECTOR // 2 == validator.withdrawable_epoch: increment = EFFECTIVE_BALANCE_INCREMENT # Factored out from penalty numerator to avoid uint64 overflow penalty_numerator = validator.effective_balance // increment * min(sum(state.slashings) * 3, total_balance) penalty = penalty_numerator // total_balance * increment decrease_balance(state, ValidatorIndex(index), penalty).