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-17 19:09:28 -07:00 committed by GitHub
parent 3893fccaa4
commit c74b28a7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

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