Minor wording changes
This commit is contained in:
parent
1a3ef51129
commit
99bed49c8d
@ -1,3 +1,4 @@
|
||||
//nolint
|
||||
package slashing
|
||||
|
||||
import (
|
||||
@ -17,17 +18,12 @@ const (
|
||||
CodeValidatorJailed CodeType = 202
|
||||
)
|
||||
|
||||
//nolint
|
||||
func ErrNoValidatorForAddress(codespace sdk.CodespaceType) sdk.Error {
|
||||
return newError(codespace, CodeInvalidValidator, "That address is not associated with any known validator")
|
||||
}
|
||||
|
||||
//nolint
|
||||
func ErrBadValidatorAddr(codespace sdk.CodespaceType) sdk.Error {
|
||||
return newError(codespace, CodeInvalidValidator, "Validator does not exist for that address")
|
||||
}
|
||||
|
||||
//nolint
|
||||
func ErrValidatorJailed(codespace sdk.CodespaceType) sdk.Error {
|
||||
return newError(codespace, CodeValidatorJailed, "Validator jailed, cannot yet be unrevoked")
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ func NewHandler(k Keeper) sdk.Handler {
|
||||
}
|
||||
}
|
||||
|
||||
// Validators must submit a transaction to unrevoke themselves after
|
||||
// Validators must submit a transaction to unrevoke itself after
|
||||
// having been revoked (and thus unbonded) for downtime
|
||||
func handleMsgUnrevoke(ctx sdk.Context, msg MsgUnrevoke, k Keeper) sdk.Result {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user