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.
|
Check if ``validator`` index can be re-assigned to a new deposit.
|
||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
validator.withdrawable_epoch < epoch - REUSE_VALIDATOR_INDEX_DELAY
|
epoch > REUSE_VALIDATOR_INDEX_DELAY
|
||||||
and balance == 0
|
and validator.withdrawable_epoch < epoch - REUSE_VALIDATOR_INDEX_DELAY
|
||||||
|
and balance == 0
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue