mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
fixed slashed epoch (#1723)
This commit is contained in:
parent
c2ad89a8b6
commit
727adacb4b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user