remove duplicated check when RemoveValidator (#6239)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Xuefeng Zhu
2020-05-18 02:09:28 +00:00
committed by GitHub
co-authored by mergify[bot]
parent 3893fccaa4
commit c74b28a7ac
-4
View File
@@ -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