Merge PR #1397: Fix spelling changes

* fixed spelling changes
* extra spelling error
This commit is contained in:
Sunny Aggarwal 2018-06-26 16:58:42 -07:00 committed by Christopher Goes
parent 8778576b93
commit 9ca3a16bb3
6 changed files with 8 additions and 8 deletions

View File

@ -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.
::

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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())