mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-01 07:45:00 -05:00
Add epoch > REUSE_VALIDATOR_INDEX_DELAY condition
This commit is contained in:
@@ -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
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user