From c74b28a7acb538cb2987b641e1790a74846d99d1 Mon Sep 17 00:00:00 2001 From: Xuefeng Zhu Date: Sun, 17 May 2020 19:09:28 -0700 Subject: [PATCH] remove duplicated check when RemoveValidator (#6239) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- x/staking/keeper/validator.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/staking/keeper/validator.go b/x/staking/keeper/validator.go index 03a9750b67..fc211fc95b 100644 --- a/x/staking/keeper/validator.go +++ b/x/staking/keeper/validator.go @@ -196,10 +196,6 @@ func (k Keeper) RemoveValidator(ctx sdk.Context, address sdk.ValAddress) { panic("attempting to remove a validator which still contains tokens") } - if validator.Tokens.IsPositive() { - panic("validator being removed should never have positive tokens") - } - valConsAddr := validator.GetConsAddr() // delete the old validator record