Merge PR #1397: Fix spelling changes
* fixed spelling changes * extra spelling error
This commit is contained in:
parent
8778576b93
commit
9ca3a16bb3
|
@ -57,7 +57,7 @@ Start Nodes
|
||||||
|
|
||||||
Now that we've initialized the chains, we can start both 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.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ startUnbonding(tx TxStartUnbonding):
|
||||||
### TxCompleteUnbonding
|
### TxCompleteUnbonding
|
||||||
|
|
||||||
Complete the unbonding and transfer the coins to the delegate. Perform any
|
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
|
```golang
|
||||||
type TxUnbondingComplete struct {
|
type TxUnbondingComplete struct {
|
||||||
|
|
|
@ -234,7 +234,7 @@ func (k Keeper) updateValidator(ctx sdk.Context, validator Validator) Validator
|
||||||
store.Set(GetValidatorKey(ownerAddr), bz)
|
store.Set(GetValidatorKey(ownerAddr), bz)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// retreive the old validator record
|
// retrieve the old validator record
|
||||||
oldValidator, oldFound := k.GetValidator(ctx, ownerAddr)
|
oldValidator, oldFound := k.GetValidator(ctx, ownerAddr)
|
||||||
|
|
||||||
if validator.Revoked && oldValidator.Status() == sdk.Bonded {
|
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
|
// update the validator set for this validator
|
||||||
updatedVal := k.updateBondedValidators(ctx, store, 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
|
validator = updatedVal
|
||||||
}
|
}
|
||||||
return validator
|
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) {
|
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)
|
validator, found := k.GetValidator(ctx, address)
|
||||||
if !found {
|
if !found {
|
||||||
return
|
return
|
||||||
|
|
|
@ -300,7 +300,7 @@ func GetValidatorSortingMixed(t *testing.T) {
|
||||||
assert.Equal(t, validators[0].Owner, resValidators[4].Owner, "%v", resValidators)
|
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) {
|
func TestGetValidatorsEdgeCases(t *testing.T) {
|
||||||
ctx, _, keeper := createTestInput(t, false, sdk.NewInt(0))
|
ctx, _, keeper := createTestInput(t, false, sdk.NewInt(0))
|
||||||
var found bool
|
var found bool
|
||||||
|
|
|
@ -21,7 +21,7 @@ type Pool struct {
|
||||||
DateLastCommissionReset int64 `json:"date_last_commission_reset"` // unix timestamp for last commission accounting reset (daily)
|
DateLastCommissionReset int64 `json:"date_last_commission_reset"` // unix timestamp for last commission accounting reset (daily)
|
||||||
|
|
||||||
// Fee Related
|
// 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 {
|
func (p Pool) equal(p2 Pool) bool {
|
||||||
|
|
|
@ -279,7 +279,7 @@ func (v Validator) HumanReadableString() (string, error) {
|
||||||
resp += fmt.Sprintf("Proposer Reward Pool: %s\n", v.ProposerRewardPool.String())
|
resp += fmt.Sprintf("Proposer Reward Pool: %s\n", v.ProposerRewardPool.String())
|
||||||
resp += fmt.Sprintf("Commission: %s\n", v.Commission.String())
|
resp += fmt.Sprintf("Commission: %s\n", v.Commission.String())
|
||||||
resp += fmt.Sprintf("Max Commission Rate: %s\n", v.CommissionMax.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("Commission Change Today: %s\n", v.CommissionChangeToday.String())
|
||||||
resp += fmt.Sprintf("Previously Bonded Stares: %s\n", v.PrevBondedShares.String())
|
resp += fmt.Sprintf("Previously Bonded Stares: %s\n", v.PrevBondedShares.String())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue