Skip to content

Commit

Permalink
Upgrade4: gRevert "update1 (lino-network#410)" (lino-network#413)
Browse files Browse the repository at this point in the history
* gRevert "update1 (lino-network#410)"

This reverts commit 91b3006.

* fix export typo
  • Loading branch information
Stumble authored Oct 14, 2019
1 parent bb9a0aa commit e1de43e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions types/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@ const (
// ValidatorMaxPower - the max power of validator can have
ValidatorMaxPower = int64(100000000000)

// Upgrade3Update1 - lower register fee.
Upgrade3Update1 = 27000

// TxSigLimit - max number of sigs in one transaction
// XXX(yumin): This will actually limit the number of msg per tx to at most 2.
TxSigLimit = 2
Expand Down
3 changes: 0 additions & 3 deletions x/account/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ func (accManager AccountManager) RegisterAccount(
return err
}
minRegFee := accParams.RegisterFee
if ctx.BlockHeight() >= linotypes.Upgrade3Update1 {
minRegFee = linotypes.NewCoinFromInt64(10000)
}
if minRegFee.IsGT(registerFee) {
return types.ErrRegisterFeeInsufficient()
}
Expand Down
2 changes: 1 addition & 1 deletion x/validator/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ func (vm ValidatorManager) ExportToFile(ctx sdk.Context, cdc *codec.Codec, filep
})

// export votes
substores[string(model.ValidatorListSubstore)].Iterate(func(key []byte, val interface{}) bool {
substores[string(model.ElectionVoteListSubstore)].Iterate(func(key []byte, val interface{}) bool {
user := linotypes.AccountKey(key)
votelist := val.(*model.ElectionVoteList)
votesIR := make([]model.ElectionVoteIR, 0)
Expand Down

0 comments on commit e1de43e

Please sign in to comment.