Skip to content

Commit c1ece30

Browse files
mergify[bot]vtjl10
andauthored
docs: fix typos in documentation and error messages (backport #24888) (#24889)
Co-authored-by: fuder.eth <[email protected]>
1 parent e265bb9 commit c1ece30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crypto/keyring/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var (
1515
ErrOverwriteKey = errors.New("cannot overwrite key")
1616
// ErrKeyAlreadyExists is raised when creating a key that already exists
1717
ErrKeyAlreadyExists = errors.Newf("key already exists")
18-
// ErrInvalidSignMode is raised when trying to sign with an invaled method
18+
// ErrInvalidSignMode is raised when trying to sign with an invalid method
1919
ErrInvalidSignMode = errors.New("invalid sign mode, expected LEGACY_AMINO_JSON or TEXTUAL")
2020
// ErrMaxPassPhraseAttempts is raised when the maxPassphraseEntryAttempts is reached
2121
ErrMaxPassPhraseAttempts = errors.New("too many failed passphrase attempts")

x/staking/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,15 @@ When a Validator is slashed, the following occurs:
464464

465465
* The total `slashAmount` is calculated as the `slashFactor` (a chain parameter) \* `TokensFromConsensusPower`,
466466
the total number of tokens bonded to the validator at the time of the infraction.
467-
* Every unbonding delegation and pseudo-unbonding redelegation such that the infraction occured before the unbonding or
467+
* Every unbonding delegation and pseudo-unbonding redelegation such that the infraction occurred before the unbonding or
468468
redelegation began from the validator are slashed by the `slashFactor` percentage of the initialBalance.
469469
* Each amount slashed from redelegations and unbonding delegations is subtracted from the
470470
total slash amount.
471471
* The `remaingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or
472472
`NonBondedPool` depending on the validator's status. This reduces the total supply of tokens.
473473

474474
In the case of a slash due to any infraction that requires evidence to submitted (for example double-sign), the slash
475-
occurs at the block where the evidence is included, not at the block where the infraction occured.
475+
occurs at the block where the evidence is included, not at the block where the infraction occurred.
476476
Put otherwise, validators are not slashed retroactively, only when they are caught.
477477

478478
#### Slash Unbonding Delegation

0 commit comments

Comments
 (0)