mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 14:54:57 -05:00
Apply suggestions from code review
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user