Merge PR #4823: fix DefaultUnbondingTime
This commit is contained in:
parent
8f09f1e2b3
commit
0fec74893d
|
@ -0,0 +1 @@
|
|||
#4823 Update the `DefaultUnbondingTime` from 3 days to 3 weeks to be inline with documentation.
|
|
@ -10,11 +10,12 @@ import (
|
|||
"github.com/cosmos/cosmos-sdk/x/params"
|
||||
)
|
||||
|
||||
// Staking params default values
|
||||
const (
|
||||
// DefaultUnbondingTime reflects three weeks in seconds as the default
|
||||
// unbonding time.
|
||||
// TODO: Justify our choice of default here.
|
||||
DefaultUnbondingTime time.Duration = time.Second * 60 * 60 * 24 * 3
|
||||
DefaultUnbondingTime time.Duration = time.Hour * 24 * 7 * 3
|
||||
|
||||
// Default maximum number of bonded validators
|
||||
DefaultMaxValidators uint16 = 100
|
||||
|
@ -42,6 +43,7 @@ type Params struct {
|
|||
BondDenom string `json:"bond_denom" yaml:"bond_denom"` // bondable coin denomination
|
||||
}
|
||||
|
||||
// NewParams creates a new Params instance
|
||||
func NewParams(unbondingTime time.Duration, maxValidators, maxEntries uint16,
|
||||
bondDenom string) Params {
|
||||
|
||||
|
|
Loading…
Reference in New Issue