Use realistic `withdrawable_epoch` in spec test

This commit is contained in:
Alex Stokes 2021-09-07 12:25:09 -07:00
parent 064b489d18
commit 14f71ffb4b
No known key found for this signature in database
GPG Key ID: 99B3D88FD6C55A69
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ def test_balance_threshold_with_exited_validators(spec, state):
validator = state.validators[index]
validator.exit_epoch = epoch
validator.withdrawable_epoch = epoch + 1
validator.withdrawable_epoch = validator.exit_epoch + spec.config.MIN_VALIDATOR_WITHDRAWABILITY_DELAY
exited_validators = get_unslashed_exited_validators(spec, state)
assert len(exited_validators) != 0