diff --git a/docs/_attic/staking/local-testnet.rst b/docs/_attic/staking/local-testnet.rst index b8d30d2e2..830830a6f 100644 --- a/docs/_attic/staking/local-testnet.rst +++ b/docs/_attic/staking/local-testnet.rst @@ -57,7 +57,7 @@ Start Nodes Now that we've initialized the chains, we can start both nodes: -NOTE: each command below must be started in seperate terminal windows. Alternatively, to run this testnet across multiple machines, you'd replace the ``seeds = "0.0.0.0"`` in ``~/.gaia2.config.toml`` with the IP of the first node, and could skip the modifications we made to the config file above because port conflicts would be avoided. +NOTE: each command below must be started in separate terminal windows. Alternatively, to run this testnet across multiple machines, you'd replace the ``seeds = "0.0.0.0"`` in ``~/.gaia2.config.toml`` with the IP of the first node, and could skip the modifications we made to the config file above because port conflicts would be avoided. :: diff --git a/docs/spec/staking/transactions.md b/docs/spec/staking/transactions.md index 91df029c9..55b1a8ed1 100644 --- a/docs/spec/staking/transactions.md +++ b/docs/spec/staking/transactions.md @@ -167,7 +167,7 @@ startUnbonding(tx TxStartUnbonding): ### TxCompleteUnbonding Complete the unbonding and transfer the coins to the delegate. Perform any -slashing that occured during the unbonding period. +slashing that occurred during the unbonding period. ```golang type TxUnbondingComplete struct { diff --git a/x/stake/keeper.go b/x/stake/keeper.go index 52ed82713..dd7a44663 100644 --- a/x/stake/keeper.go +++ b/x/stake/keeper.go @@ -234,7 +234,7 @@ func (k Keeper) updateValidator(ctx sdk.Context, validator Validator) Validator store.Set(GetValidatorKey(ownerAddr), bz) }() - // retreive the old validator record + // retrieve the old validator record oldValidator, oldFound := k.GetValidator(ctx, ownerAddr) if validator.Revoked && oldValidator.Status() == sdk.Bonded { @@ -288,7 +288,7 @@ func (k Keeper) updateValidator(ctx sdk.Context, validator Validator) Validator // update the validator set for this validator updatedVal := k.updateBondedValidators(ctx, store, validator) - if updatedVal.Owner != nil { // updates to validator occured to be updated + if updatedVal.Owner != nil { // updates to validator occurred to be updated validator = updatedVal } return validator @@ -498,7 +498,7 @@ func (k Keeper) bondValidator(ctx sdk.Context, store sdk.KVStore, validator Vali func (k Keeper) removeValidator(ctx sdk.Context, address sdk.Address) { - // first retreive the old validator record + // first retrieve the old validator record validator, found := k.GetValidator(ctx, address) if !found { return diff --git a/x/stake/keeper_test.go b/x/stake/keeper_test.go index 7c163a434..7b8b9ddcc 100644 --- a/x/stake/keeper_test.go +++ b/x/stake/keeper_test.go @@ -300,7 +300,7 @@ func GetValidatorSortingMixed(t *testing.T) { assert.Equal(t, validators[0].Owner, resValidators[4].Owner, "%v", resValidators) } -// TODO seperate out into multiple tests +// TODO separate out into multiple tests func TestGetValidatorsEdgeCases(t *testing.T) { ctx, _, keeper := createTestInput(t, false, sdk.NewInt(0)) var found bool diff --git a/x/stake/pool.go b/x/stake/pool.go index 91e898770..4b65c0e8e 100644 --- a/x/stake/pool.go +++ b/x/stake/pool.go @@ -21,7 +21,7 @@ type Pool struct { DateLastCommissionReset int64 `json:"date_last_commission_reset"` // unix timestamp for last commission accounting reset (daily) // Fee Related - PrevBondedShares sdk.Rat `json:"prev_bonded_shares"` // last recorded bonded shares - for fee calcualtions + PrevBondedShares sdk.Rat `json:"prev_bonded_shares"` // last recorded bonded shares - for fee calculations } func (p Pool) equal(p2 Pool) bool { diff --git a/x/stake/validator.go b/x/stake/validator.go index e0e396385..ce6e7a7eb 100644 --- a/x/stake/validator.go +++ b/x/stake/validator.go @@ -279,7 +279,7 @@ func (v Validator) HumanReadableString() (string, error) { resp += fmt.Sprintf("Proposer Reward Pool: %s\n", v.ProposerRewardPool.String()) resp += fmt.Sprintf("Commission: %s\n", v.Commission.String()) resp += fmt.Sprintf("Max Commission Rate: %s\n", v.CommissionMax.String()) - resp += fmt.Sprintf("Comission Change Rate: %s\n", v.CommissionChangeRate.String()) + resp += fmt.Sprintf("Commission Change Rate: %s\n", v.CommissionChangeRate.String()) resp += fmt.Sprintf("Commission Change Today: %s\n", v.CommissionChangeToday.String()) resp += fmt.Sprintf("Previously Bonded Stares: %s\n", v.PrevBondedShares.String())