mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-01 18:50:35 +00:00
Add epoch > REUSE_VALIDATOR_INDEX_DELAY condition
This commit is contained in:
parent
ee3e1ac63e
commit
c1273bbfa4
@ -45,8 +45,9 @@ def is_reusable_validator(validator: Validator, balance: Gwei, epoch: Epoch) ->
|
||||
Check if ``validator`` index can be re-assigned to a new deposit.
|
||||
"""
|
||||
return (
|
||||
validator.withdrawable_epoch < epoch - REUSE_VALIDATOR_INDEX_DELAY
|
||||
and balance == 0
|
||||
epoch > REUSE_VALIDATOR_INDEX_DELAY
|
||||
and validator.withdrawable_epoch < epoch - REUSE_VALIDATOR_INDEX_DELAY
|
||||
and balance == 0
|
||||
)
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user