From 727adacb4bf7341b638b7902293faab3f697f797 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Tue, 26 Feb 2019 14:12:06 -0800 Subject: [PATCH] fixed slashed epoch (#1723) --- beacon-chain/core/validators/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon-chain/core/validators/validator.go b/beacon-chain/core/validators/validator.go index 265e23013c87..4f4657113faf 100644 --- a/beacon-chain/core/validators/validator.go +++ b/beacon-chain/core/validators/validator.go @@ -227,7 +227,7 @@ func SlashValidator(state *pb.BeaconState, idx uint64) (*pb.BeaconState, error) state.ValidatorBalances[whistleblowerIdx] += whistleblowerReward state.ValidatorBalances[idx] -= whistleblowerReward - state.ValidatorRegistry[idx].SlashedEpoch = helpers.CurrentEpoch(state) + state.ValidatorRegistry[idx].SlashedEpoch = helpers.CurrentEpoch(state) + params.BeaconConfig().LatestSlashedExitLength return state, nil }