Skip to content

Commit

Permalink
fixed slashed epoch (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored and rauljordan committed Feb 26, 2019
1 parent c2ad89a commit 727adac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/core/validators/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 727adac

Please sign in to comment.