Apply suggestions from code review

Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
This commit is contained in:
Danny Ryan 2022-09-21 07:33:05 -06:00
parent 91ea9e6959
commit bfca7f9a96
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A

View File

@ -20,6 +20,9 @@ def test_success_top_up_to_withdrawn_validator(spec, state):
assert state.balances[validator_index] > 0
next_epoch_via_block(spec, state)
assert state.balances[validator_index] == 0
assert state.validators[validator_index].effective_balance > 0
next_epoch_via_block(spec, state)
assert state.validators[validator_index].effective_balance == 0
# Make a top-up balance to validator
amount = spec.MAX_EFFECTIVE_BALANCE // 4
@ -27,8 +30,8 @@ def test_success_top_up_to_withdrawn_validator(spec, state):
yield from run_deposit_processing(spec, state, deposit, validator_index)
state.balances[validator_index] == amount
state.validators[validator_index].effective_balance == 0
assert state.balances[validator_index] == amount
assert state.validators[validator_index].effective_balance == 0
validator = state.validators[validator_index]
balance = state.balances[validator_index]