From d28e5e4843ae39fba177e8c8744bd248cd938c15 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Wed, 1 May 2019 16:26:18 -0700 Subject: [PATCH] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 55791e25f..68e7ff484 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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