diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-16 18:17:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 4246c8733870b92a8090bff1b3dc0c1159c535ad (patch) | |
tree | 98136cde52f8c2375711113d5f6c8e10a4b3ac55 /params/gen_dexcon_config.go | |
parent | c2d461f4c5cefde85173365175d2de8bf234b4aa (diff) | |
download | dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar.gz dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar.bz2 dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar.lz dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar.xz dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.tar.zst dexon-4246c8733870b92a8090bff1b3dc0c1159c535ad.zip |
core: vm: add minStake to governance contract variable (#31)
Diffstat (limited to 'params/gen_dexcon_config.go')
-rw-r--r-- | params/gen_dexcon_config.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/params/gen_dexcon_config.go b/params/gen_dexcon_config.go index e1be574c0..6633b38f3 100644 --- a/params/gen_dexcon_config.go +++ b/params/gen_dexcon_config.go @@ -17,6 +17,7 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) { type DexconConfig struct { GenesisCRSText string `json:"genesisCRSText"` Owner common.Address `json:"owner"` + MinStake *math.HexOrDecimal256 `json:"minStake"` BlockReward *math.HexOrDecimal256 `json:"blockReward"` BlockGasLimit uint64 `json:"blockGasLimit"` NumChains uint32 `json:"numChains"` @@ -32,6 +33,7 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) { var enc DexconConfig enc.GenesisCRSText = d.GenesisCRSText enc.Owner = d.Owner + enc.MinStake = (*math.HexOrDecimal256)(d.MinStake) enc.BlockReward = (*math.HexOrDecimal256)(d.BlockReward) enc.BlockGasLimit = d.BlockGasLimit enc.NumChains = d.NumChains @@ -51,6 +53,7 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error { type DexconConfig struct { GenesisCRSText *string `json:"genesisCRSText"` Owner *common.Address `json:"owner"` + MinStake *math.HexOrDecimal256 `json:"minStake"` BlockReward *math.HexOrDecimal256 `json:"blockReward"` BlockGasLimit *uint64 `json:"blockGasLimit"` NumChains *uint32 `json:"numChains"` @@ -73,6 +76,9 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error { if dec.Owner != nil { d.Owner = *dec.Owner } + if dec.MinStake != nil { + d.MinStake = (*big.Int)(dec.MinStake) + } if dec.BlockReward != nil { d.BlockReward = (*big.Int)(dec.BlockReward) } |