diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-16 18:17:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 38bbf3f13901e7ff7995d16545e8c589f09f2147 (patch) | |
tree | 00a40e94b303475005926cedd00a824acbbb748c /params/config.go | |
parent | 618b38d6cf2703b2425a55561489cbe1af5f8f53 (diff) | |
download | dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar.gz dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar.bz2 dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar.lz dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar.xz dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.tar.zst dexon-38bbf3f13901e7ff7995d16545e8c589f09f2147.zip |
core: vm: add minStake to governance contract variable (#31)
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go index 443a457d2..8007d0c23 100644 --- a/params/config.go +++ b/params/config.go @@ -46,6 +46,7 @@ var ( Dexcon: &DexconConfig{ GenesisCRSText: "In DEXON, we trust.", Owner: common.HexToAddress("BF8C48A620bacc46907f9B89732D25E47A2D7Cf7"), + MinStake: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), BlockReward: big.NewInt(1e18), BlockGasLimit: 80000000, NumChains: 4, @@ -83,6 +84,7 @@ var ( Dexcon: &DexconConfig{ GenesisCRSText: "In DEXON, we trust.", Owner: common.HexToAddress("BF8C48A620bacc46907f9B89732D25E47A2D7Cf7"), + MinStake: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), BlockReward: big.NewInt(1e18), BlockGasLimit: 80000000, NumChains: 6, @@ -191,6 +193,7 @@ func (c *CliqueConfig) String() string { type DexconConfig struct { GenesisCRSText string `json:"genesisCRSText"` Owner common.Address `json:"owner"` + MinStake *big.Int `json:"minStake"` BlockReward *big.Int `json:"blockReward"` BlockGasLimit uint64 `json:"blockGasLimit"` NumChains uint32 `json:"numChains"` @@ -205,14 +208,16 @@ type DexconConfig struct { } type dexconConfigSpecMarshaling struct { + MinStake *math.HexOrDecimal256 BlockReward *math.HexOrDecimal256 } // String implements the stringer interface, returning the consensus engine details. func (d *DexconConfig) String() string { - return fmt.Sprintf("{GenesisCRSText: %v Owner: %v BlockReward: %v BlockGasLimit: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v}", + return fmt.Sprintf("{GenesisCRSText: %v Owner: %v MinStake: %v BlockReward: %v BlockGasLimit: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v}", d.GenesisCRSText, d.Owner, + d.MinStake, d.BlockReward, d.BlockGasLimit, d.NumChains, |