mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-31 21:05:24 +00:00
Merge pull request #1025 from terencechain/patch-70
Add comment for `get_churn_limit`
This commit is contained in:
commit
c24002bb1e
@ -1097,6 +1097,9 @@ def get_delayed_activation_exit_epoch(epoch: Epoch) -> Epoch:
|
||||
|
||||
```python
|
||||
def get_churn_limit(state: BeaconState) -> int:
|
||||
"""
|
||||
Return the churn limit based on the active validator count.
|
||||
"""
|
||||
return max(
|
||||
MIN_PER_EPOCH_CHURN_LIMIT,
|
||||
len(get_active_validator_indices(state, get_current_epoch(state))) // CHURN_LIMIT_QUOTIENT
|
||||
|
Loading…
x
Reference in New Issue
Block a user