aboutsummaryrefslogtreecommitdiffstats
path: root/params/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-03-12 12:19:09 +0800
commit3d61c2bd98c4f22c05585ed5448eb02b87e38869 (patch)
tree2e307739fb67d92a851e4fba212222385479dbcb /params/config.go
parent53af3aa918f2d870b834952d14cf14efc365aca2 (diff)
downloaddexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar.gz
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar.bz2
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar.lz
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar.xz
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.tar.zst
dexon-3d61c2bd98c4f22c05585ed5448eb02b87e38869.zip
dex: add block gas limit into governance
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go
index 9127f144f..b5a58088d 100644
--- a/params/config.go
+++ b/params/config.go
@@ -48,6 +48,7 @@ var (
GenesisCRSText: "In DEXON, we trust.",
Owner: common.HexToAddress("7C3c31B19395A5e2627F921Cc2802560B71f1caB"),
BlockReward: big.NewInt(1e18),
+ BlockGasLimit: 80000000,
NumChains: 4,
LambdaBA: 250,
LambdaDKG: 2500,
@@ -86,6 +87,7 @@ var (
GenesisCRSText: "In DEXON, we trust.",
Owner: common.HexToAddress("7C3c31B19395A5e2627F921Cc2802560B71f1caB"),
BlockReward: big.NewInt(1e18),
+ BlockGasLimit: 80000000,
NumChains: 4,
LambdaBA: 250,
LambdaDKG: 2500,
@@ -195,6 +197,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"`
@@ -213,10 +216,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,