From 0b827a04476f0fef05276aebb153e6ec9a51765a Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 26 Jan 2019 21:38:27 +1100 Subject: [PATCH] Change `PENALIZED_WITHDRAWAL_TIME` variable It's not in the "Constants" list and it is assigned to. --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index af121905f..c7bef5c25 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1823,8 +1823,8 @@ def process_penalties_and_exits(state: BeaconState) -> None: def eligible(index): validator = state.validator_registry[index] if validator.penalized_slot <= state.slot: - PENALIZED_WITHDRAWAL_TIME = LATEST_PENALIZED_EXIT_LENGTH * EPOCH_LENGTH // 2 - return state.slot >= validator.penalized_slot + PENALIZED_WITHDRAWAL_TIME + penalized_withdrawal_time = LATEST_PENALIZED_EXIT_LENGTH * EPOCH_LENGTH // 2 + return state.slot >= validator.penalized_slot + penalized_withdrawal_time else: return state.slot >= validator.exit_slot + MIN_VALIDATOR_WITHDRAWAL_TIME