Skip to content

Commit

Permalink
Fix get_max_effective_balance call
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Sep 4, 2024
1 parent 3ebddad commit 8c726ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/pyspec/eth2spec/test/helpers/deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def run_pending_deposit_applying(spec, state, pending_deposit, validator_index,
assert len(state.validators) == pre_validator_count + 1
assert len(state.balances) == pre_validator_count + 1
# effective balance is set correctly
max_effective_balace = spec.get_validator_max_effective_balance(state.validators[validator_index])
max_effective_balace = spec.get_max_effective_balance(state.validators[validator_index])
effective_balance = min(max_effective_balace, pending_deposit.amount)
effective_balance -= effective_balance % spec.EFFECTIVE_BALANCE_INCREMENT
assert state.validators[validator_index].effective_balance == effective_balance
Expand Down

0 comments on commit 8c726ff

Please sign in to comment.