aboutsummaryrefslogtreecommitdiffstats
path: root/params/gen_dexcon_config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-31 14:00:13 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commit89b4e46f7c319e48425fc0a3af810f66d6778a1e (patch)
tree1bf02bfa8b0c18a7894e953170ef16677d53fc2a /params/gen_dexcon_config.go
parent080b562fc0dc529c09b64fb4acc654987d3d1eb6 (diff)
downloaddexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar.gz
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar.bz2
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar.lz
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar.xz
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.tar.zst
dexon-89b4e46f7c319e48425fc0a3af810f66d6778a1e.zip
dex: add block gas limit into governance
Diffstat (limited to 'params/gen_dexcon_config.go')
-rw-r--r--params/gen_dexcon_config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/params/gen_dexcon_config.go b/params/gen_dexcon_config.go
index f81951140..f378b4588 100644
--- a/params/gen_dexcon_config.go
+++ b/params/gen_dexcon_config.go
@@ -18,6 +18,7 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) {
GenesisCRSText string `json:"genesisCRSText"`
Owner common.Address `json:"owner"`
BlockReward *math.HexOrDecimal256 `json:"blockReward"`
+ BlockGasLimit uint64 `json:"blockGasLimit"`
NumChains uint32 `json:"numChains"`
LambdaBA uint64 `json:"lambdaBA"`
LambdaDKG uint64 `json:"lambdaDKG"`
@@ -33,6 +34,7 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) {
enc.GenesisCRSText = d.GenesisCRSText
enc.Owner = d.Owner
enc.BlockReward = (*math.HexOrDecimal256)(d.BlockReward)
+ enc.BlockGasLimit = d.BlockGasLimit
enc.NumChains = d.NumChains
enc.LambdaBA = d.LambdaBA
enc.LambdaDKG = d.LambdaDKG
@@ -52,6 +54,7 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error {
GenesisCRSText *string `json:"genesisCRSText"`
Owner *common.Address `json:"owner"`
BlockReward *math.HexOrDecimal256 `json:"blockReward"`
+ BlockGasLimit *uint64 `json:"blockGasLimit"`
NumChains *uint32 `json:"numChains"`
LambdaBA *uint64 `json:"lambdaBA"`
LambdaDKG *uint64 `json:"lambdaDKG"`
@@ -76,6 +79,9 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error {
if dec.BlockReward != nil {
d.BlockReward = (*big.Int)(dec.BlockReward)
}
+ if dec.BlockGasLimit != nil {
+ d.BlockGasLimit = *dec.BlockGasLimit
+ }
if dec.NumChains != nil {
d.NumChains = *dec.NumChains
}