From 91ea9e6959b64640fad2f617c2f006e8eb6d9b04 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Tue, 20 Sep 2022 08:18:42 -0600 Subject: [PATCH] review suggestion from @hwwhww Co-authored-by: Hsiao-Wei Wang --- .../test/capella/block_processing/test_process_deposit.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_deposit.py b/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_deposit.py index 34c58ef39..93dd655fc 100644 --- a/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_deposit.py +++ b/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_deposit.py @@ -28,3 +28,9 @@ 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 + + validator = state.validators[validator_index] + balance = state.balances[validator_index] + current_epoch = spec.get_current_epoch(state) + assert spec.is_fully_withdrawable_validator(validator, balance, current_epoch)