diff --git a/x/auth/types/params.go b/x/auth/types/params.go index 5374534417ff..5acc4e62b06d 100644 --- a/x/auth/types/params.go +++ b/x/auth/types/params.go @@ -10,7 +10,7 @@ import ( // Default parameter values const ( - DefaultMaxMemoCharacters uint64 = 256 + DefaultMaxMemoCharacters uint64 = 128 DefaultTxSigLimit uint64 = 7 DefaultTxSizeCostPerByte uint64 = 10 DefaultSigVerifyCostED25519 uint64 = 590 @@ -71,8 +71,10 @@ func DefaultParams() Params { // SigVerifyCostSecp256r1 returns gas fee of secp256r1 signature verification. // Set by benchmarking current implementation: -// BenchmarkSig/secp256k1 4334 277167 ns/op 4128 B/op 79 allocs/op -// BenchmarkSig/secp256r1 10000 108769 ns/op 1672 B/op 33 allocs/op +// +// BenchmarkSig/secp256k1 4334 277167 ns/op 4128 B/op 79 allocs/op +// BenchmarkSig/secp256r1 10000 108769 ns/op 1672 B/op 33 allocs/op +// // Based on the results above secp256k1 is 2.7x is slwer. However we propose to discount it // because we are we don't compare the cgo implementation of secp256k1, which is faster. func (p Params) SigVerifyCostSecp256r1() uint64 { diff --git a/x/mint/types/params.go b/x/mint/types/params.go index 69a909af05bc..104338a12f43 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -47,7 +47,7 @@ func DefaultParams() Params { InflationMax: sdk.NewDecWithPrec(20, 2), InflationMin: sdk.NewDecWithPrec(7, 2), GoalBonded: sdk.NewDecWithPrec(67, 2), - BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5 second block times + BlocksPerYear: uint64(60 * 60 * 8766 / 15), // assuming 15 second block times } } diff --git a/x/slashing/types/params.go b/x/slashing/types/params.go index ad1d98c37f15..70122a3e5b1a 100644 --- a/x/slashing/types/params.go +++ b/x/slashing/types/params.go @@ -10,7 +10,7 @@ import ( // Default parameter namespace const ( - DefaultSignedBlocksWindow = int64(100) + DefaultSignedBlocksWindow = int64(5760) // 4 (blocks per min) * 60 (mins in hour) * 24 (hours in day) = 5760 blocks per day DefaultDowntimeJailDuration = 60 * 10 * time.Second ) diff --git a/x/staking/types/params.go b/x/staking/types/params.go index 191b66e4c809..3f30ec4f935f 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -32,8 +32,8 @@ const ( DefaultHistoricalEntries uint32 = 10000 ) -// DefaultMinCommissionRate is set to 0% -var DefaultMinCommissionRate = sdk.ZeroDec() +// DefaultMinCommissionRate is set to .05 +var DefaultMinCommissionRate = sdk.NewDecWithPrec(5, 2) var ( KeyUnbondingTime = []byte("UnbondingTime")