From 5d542576d9918607cbe4674cc19a0fbd771b6161 Mon Sep 17 00:00:00 2001 From: Dean Eigenmann Date: Wed, 16 Jan 2019 21:31:33 +0100 Subject: [PATCH 1/2] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 2ea441b2e..9ea510151 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1713,7 +1713,7 @@ def process_ejections(state: BeaconState) -> None: Iterate through the validator registry and eject active validators with balance below ``EJECTION_BALANCE``. """ - for index in active_validator_indices(state.validator_registry): + for index in get_active_validator_indices(state.validator_registry): if state.validator_balances[index] < EJECTION_BALANCE * GWEI_PER_ETH: exit_validator(state, index) ``` From 60bbe7addc8fc9584ef550bb25027a1e24201e23 Mon Sep 17 00:00:00 2001 From: Dean Eigenmann Date: Wed, 16 Jan 2019 21:33:36 +0100 Subject: [PATCH 2/2] Update 0_beacon-chain.md --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 9ea510151..0d2b52b9f 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1713,7 +1713,7 @@ def process_ejections(state: BeaconState) -> None: Iterate through the validator registry and eject active validators with balance below ``EJECTION_BALANCE``. """ - for index in get_active_validator_indices(state.validator_registry): + for index in get_active_validator_indices(state.validator_registry, state.slot): if state.validator_balances[index] < EJECTION_BALANCE * GWEI_PER_ETH: exit_validator(state, index) ```