Skip to content

Commit

Permalink
Potuz and James feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Oct 16, 2024
1 parent ac1b135 commit b196f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/core/epoch/epoch_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func ProcessSlashings(st state.BeaconState, slashingMultiplier uint64) (state.Be

// Modified in Electra:EIP7251
var penaltyPerEffectiveBalanceIncrement uint64
if st.Version() == version.Electra {
if st.Version() >= version.Electra {
penaltyPerEffectiveBalanceIncrement = minSlashing / (totalBalance / increment)
}

Expand All @@ -196,7 +196,7 @@ func ProcessSlashings(st state.BeaconState, slashingMultiplier uint64) (state.Be
correctEpoch := (currentEpoch + exitLength/2) == val.WithdrawableEpoch()
if val.Slashed() && correctEpoch {
var penalty uint64
if st.Version() == version.Electra {
if st.Version() >= version.Electra {
effectiveBalanceIncrements := val.EffectiveBalance() / increment
penalty = penaltyPerEffectiveBalanceIncrement * effectiveBalanceIncrements
} else {
Expand Down

0 comments on commit b196f21

Please sign in to comment.