Update 0_beacon-chain.md

This commit is contained in:
terence tsao 2019-05-01 16:26:18 -07:00 committed by GitHub
parent 3562264a5c
commit d28e5e4843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1151,6 +1151,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