rename SAFE_EPOCHS_TO_REUSE_INDEX

This commit is contained in:
dapplion 2023-04-20 08:52:25 +09:00
parent accf99fba3
commit 498fbd04a2
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ This is the beacon chain specification to assign new deposits to existing valida
| Name | Value | Unit | Duration |
| - | - | - | - |
| `REUSE_VALIDATOR_INDEX_DELAY` | `uint64(2**16)` (= 65,536) | epochs | ~0.8 year |
| `SAFE_EPOCHS_TO_REUSE_INDEX` | `uint64(2**16)` (= 65,536) | epochs | ~0.8 year |
## Helper functions
@ -45,7 +45,7 @@ def is_reusable_validator(validator: Validator, balance: Gwei, epoch: Epoch) ->
Check if ``validator`` index can be re-assigned to a new deposit.
"""
return (
epoch > validator.withdrawable_epoch + REUSE_VALIDATOR_INDEX_DELAY
epoch > validator.withdrawable_epoch + SAFE_EPOCHS_TO_REUSE_INDEX
and balance == 0
)
```