-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_params.go
60 lines (47 loc) · 1.19 KB
/
default_params.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package app
import (
"time"
sdk "github.com/cosmos/cosmos-sdk/types"
)
const Day = 24 * time.Hour
// auth
const (
DefaultMaxMemoCharacters uint64 = 512
DefaultTxSizeCostPerByte uint64 = 20
DefaultSigVerifyCostED25519 uint64 = 11800
DefaultSigVerifyCostSecp256k1 uint64 = 20000
)
// staking
const (
// DefaultUnbondingTime reflects three weeks in seconds as the default
// unbonding time.
DefaultUnbondingTime = 21 * Day
// Default maximum number of bonded validators
DefaultMaxValidators uint16 = 42
)
// slashing
const (
DefaultMaxEvidenceAge = 21 * Day
DefaultSignedBlocksWindow int64 = 10000
)
// consensus
const (
DefaultEvidenceMaxAge int64 = 1000000
)
var (
DefaultMinSignedPerWindow = sdk.NewDecWithPrec(5, 2) // 0.05
DefaultSlashFractionDoubleSign = sdk.NewDec(1).Quo(sdk.NewDec(20)) // 0.05
DefaultSlashFractionDowntime = sdk.NewDec(1).Quo(sdk.NewDec(10000)) // 0.0001
DefaultGovMinDeposit = sdk.NewInt(10000e8)
DefaultCrisisConstantFee = sdk.NewInt(100000e8)
)
// gov
const (
// Default period for deposits & voting
DefaultPeriod = 14 * Day // TODO
VotingPeriod = 7 * Day
)
// staking
const (
MinSelfDelegation = 1000000e8
)