Removed hanging min

This commit is contained in:
vbuterin 2019-03-22 05:40:41 -05:00 committed by GitHub
parent b34858c67b
commit e8257db320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1886,7 +1886,7 @@ def get_inactivity_penalty(state: BeaconState, index: ValidatorIndex, epochs_sin
if epochs_since_finality <= 4: if epochs_since_finality <= 4:
extra_penalty = 0 extra_penalty = 0
else: else:
extra_penalty = get_effective_balance(state, index) * min(epochs_since_finality // INACTIVITY_PENALTY_QUOTIENT // 2 extra_penalty = get_effective_balance(state, index) * epochs_since_finality // INACTIVITY_PENALTY_QUOTIENT // 2
return get_base_reward(state, index) + extra_penalty return get_base_reward(state, index) + extra_penalty
``` ```