diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-31 14:00:13 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | c6e94db9e999211c8564969e113d43a907a55835 (patch) | |
tree | 04171d286c99594ee8eef1d63a3efd2a7d89fca7 /params/config.go | |
parent | ad92c958334faeba42a3007f29f50c4f253411c1 (diff) | |
download | dexon-c6e94db9e999211c8564969e113d43a907a55835.tar.gz dexon-c6e94db9e999211c8564969e113d43a907a55835.tar.zst dexon-c6e94db9e999211c8564969e113d43a907a55835.zip |
dex: add block gas limit into governance
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go index b4e612f19..d48ad5546 100644 --- a/params/config.go +++ b/params/config.go @@ -47,6 +47,7 @@ var ( GenesisCRSText: "In DEXON, we trust.", Owner: common.HexToAddress("7C3c31B19395A5e2627F921Cc2802560B71f1caB"), BlockReward: big.NewInt(1e18), + BlockGasLimit: 80000000, NumChains: 4, LambdaBA: 250, LambdaDKG: 2500, @@ -84,6 +85,7 @@ var ( GenesisCRSText: "In DEXON, we trust.", Owner: common.HexToAddress("7C3c31B19395A5e2627F921Cc2802560B71f1caB"), BlockReward: big.NewInt(1e18), + BlockGasLimit: 80000000, NumChains: 4, LambdaBA: 250, LambdaDKG: 2500, @@ -192,6 +194,7 @@ type DexconConfig struct { GenesisCRSText string `json:"genesisCRSText"` Owner common.Address `json:"owner"` BlockReward *big.Int `json:"blockReward"` + BlockGasLimit uint64 `json:"blockGasLimit"` NumChains uint32 `json:"numChains"` LambdaBA uint64 `json:"lambdaBA"` LambdaDKG uint64 `json:"lambdaDKG"` @@ -210,10 +213,11 @@ type dexconConfigSpecMarshaling struct { // String implements the stringer interface, returning the consensus engine details. func (d *DexconConfig) String() string { - return fmt.Sprintf("{GenesisCRSText: %v Owner: %v BlockReward: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v BlockReward: %v", + 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 MaxBlockInterval: %v BlockReward: %v", d.GenesisCRSText, d.Owner, d.BlockReward, + d.BlockGasLimit, d.NumChains, d.LambdaBA, d.LambdaDKG, |