Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
upgrade2update1 (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stumble authored Sep 20, 2019
1 parent ba12aa9 commit f127c29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions types/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,7 @@ const (

// TendermintValidatorPower - every validator has const power in tendermint engine.
TendermintValidatorPower = 1000

// Upgrade2Update1 - adjust minimum registration fee.
Upgrade2Update1Height = 30000
)
6 changes: 5 additions & 1 deletion x/account/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ func (accManager AccountManager) RegisterAccount(
if err != nil {
return err
}
if accParams.RegisterFee.IsGT(registerFee) {
minRegFee := accParams.RegisterFee
if ctx.BlockHeight() >= linotypes.Upgrade2Update1Height {
minRegFee = linotypes.NewCoinFromInt64(10000)
}
if minRegFee.IsGT(registerFee) {
return types.ErrRegisterFeeInsufficient()
}

Expand Down

0 comments on commit f127c29

Please sign in to comment.