remove extra if

This commit is contained in:
Danny Ryan 2021-05-11 08:15:04 -06:00
parent b1d0364105
commit e31a2af87b
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ def process_inactivity_updates(state: BeaconState) -> None:
else:
state.inactivity_scores[index] += INACTIVITY_SCORE_BIAS
# Decrease the score of all validators for forgiveness when not during a leak
if not if is_in_inactivity_leak(state):
if not is_in_inactivity_leak(state):
state.inactivity_scores[index] -= min(INACTIVITY_SCORE_RECOVERY_RATE, state.inactivity_scores[index])
```