From 0498c4fdbf0dbf592c25b854bb81ae0be83375dc Mon Sep 17 00:00:00 2001 From: yihuang Date: Wed, 28 Feb 2024 18:18:44 +0800 Subject: [PATCH] Update x/staking/keeper/slash.go Signed-off-by: yihuang --- x/staking/keeper/slash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/staking/keeper/slash.go b/x/staking/keeper/slash.go index e6aecd4a9a23..4824600ac4f4 100644 --- a/x/staking/keeper/slash.go +++ b/x/staking/keeper/slash.go @@ -255,7 +255,7 @@ func (k Keeper) SlashRedelegation(ctx sdk.Context, srcValidator types.Validator, panic(err) } - if k.hardForkHeight > ctx.BlockHeight() { + if k.hardForkHeight >= ctx.BlockHeight() { // Handle undelegation after redelegation // Prioritize slashing unbondingDelegation than delegation unbondingDelegation, found := k.GetUnbondingDelegation(ctx, sdk.MustAccAddressFromBech32(redelegation.DelegatorAddress), valDstAddr)