remove duplicated check when RemoveValidator (#6239)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
mergify[bot]
parent
3893fccaa4
commit
c74b28a7ac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user