remove duplicated check when RemoveValidator (#6239)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
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")
|
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()
|
valConsAddr := validator.GetConsAddr()
|
||||||
|
|
||||||
// delete the old validator record
|
// delete the old validator record
|
||||||
|
|
Loading…
Reference in New Issue