From d39d0bc456bda73cbfbb9c9ed3c3972a20aaca8e Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Wed, 1 Jan 2025 00:42:06 +0800 Subject: [PATCH] docs: fix typos (#23116) Signed-off-by: oliveredget <188809800+oliveredget@users.noreply.github.com> Co-authored-by: Marko --- store/snapshots/manager.go | 2 +- x/staking/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/snapshots/manager.go b/store/snapshots/manager.go index 17c318a94b..c392cc03e7 100644 --- a/store/snapshots/manager.go +++ b/store/snapshots/manager.go @@ -67,7 +67,7 @@ const ( snapshotMaxItemSize = int(64e6) // SDK has no key/value size limit, so we set an arbitrary limit ) -var ErrOptsZeroSnapshotInterval = errors.New("snaphot-interval must not be 0") +var ErrOptsZeroSnapshotInterval = errors.New("snapshot-interval must not be 0") // NewManager creates a new manager. func NewManager(store *Store, opts types.SnapshotOptions, multistore types.Snapshotter, extensions map[string]types.ExtensionSnapshotter, logger storetypes.Logger) *Manager { diff --git a/x/staking/README.md b/x/staking/README.md index 45c204041b..14753f82f5 100644 --- a/x/staking/README.md +++ b/x/staking/README.md @@ -506,7 +506,7 @@ When a Validator is slashed, the following occurs: redelegation began from the validator are slashed by the `slashFactor` percentage of the initialBalance. * Each amount slashed from redelegations and unbonding delegations is subtracted from the total slash amount. -* The `remaingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or +* The `remainingSlashAmount` is then slashed from the validator's tokens in the `BondedPool` or `NonBondedPool` depending on the validator's status. This reduces the total supply of tokens. In the case of a slash due to any infraction that requires evidence to submitted (for example double-sign), the slash