From 386dab1140b87f367e0e5089a50cc9e8add36611 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Mon, 26 Nov 2018 13:40:02 -0500 Subject: [PATCH] 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 5117ea664..8d9010c4a 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -815,11 +815,11 @@ def exit_validator(index, state, block, penalize, current_slot): committee.pop(i) break if penalize: + state.deposits_penalized_in_period[current_slot // COLLECTIVE_PENALTY_CALCULATION_PERIOD] += balance_at_stake(validator) validator.status = PENALIZED whistleblower_xfer_amount = validator.deposit // SLASHING_WHISTLEBLOWER_REWARD_DENOMINATOR validator.deposit -= whistleblower_xfer_amount get_beacon_proposer(state, block.slot).deposit += whistleblower_xfer_amount - state.deposits_penalized_in_period[current_slot // COLLECTIVE_PENALTY_CALCULATION_PERIOD] += balance_at_stake(validator) else: validator.status = PENDING_EXIT add_validator_set_change_record(state, index, validator.pubkey, EXIT)