diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-14 19:55:48 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | 2106d729745938a123ce502dcea9541d2b7b3fa5 (patch) | |
tree | f8f05b094ac726f981a97e8b1d62a56d77c6091f /params | |
parent | 87c2523f9e2c01ccf1ff9c25a99406ee91afc646 (diff) | |
download | go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar.gz go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar.bz2 go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar.lz go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar.xz go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.tar.zst go-tangerine-2106d729745938a123ce502dcea9541d2b7b3fa5.zip |
core: vm: group min gas price with related state variables (#257)
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/params/config.go b/params/config.go index 08a57e97a..8cf986f55 100644 --- a/params/config.go +++ b/params/config.go @@ -61,6 +61,7 @@ var ( MiningVelocity: 0.1875, NextHalvingSupply: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(2.5e9)), LastHalvedAmount: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1.5e9)), + MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), BlockGasLimit: 40000000, LambdaBA: 250, LambdaDKG: 2500, @@ -73,7 +74,6 @@ var ( new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), }, - MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), }, } @@ -107,6 +107,7 @@ var ( MiningVelocity: 0.1875, NextHalvingSupply: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1.8e8)), LastHalvedAmount: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1.6e7)), + MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), BlockGasLimit: 80000000, LambdaBA: 250, LambdaDKG: 10000, @@ -119,7 +120,6 @@ var ( new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), }, - MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), }, } @@ -144,6 +144,7 @@ var ( MiningVelocity: 0.1875, NextHalvingSupply: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1.8e8)), LastHalvedAmount: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1.6e7)), + MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), BlockGasLimit: 21000 * 5000, LambdaBA: 250, LambdaDKG: 10000, @@ -156,7 +157,6 @@ var ( new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), }, - MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), }, } @@ -189,6 +189,7 @@ var ( MiningVelocity: 0.1875, NextHalvingSupply: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(2e7)), LastHalvedAmount: new(big.Int).Mul(big.NewInt(1e18), big.NewInt(4e6)), + MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), BlockGasLimit: 21000 * 5000, LambdaBA: 250, LambdaDKG: 10000, @@ -201,7 +202,6 @@ var ( new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)), new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)), }, - MinGasPrice: new(big.Int).Mul(big.NewInt(1e9), big.NewInt(1)), }, } @@ -331,6 +331,7 @@ type DexconConfig struct { MiningVelocity float32 `json:"miningVelocity"` NextHalvingSupply *big.Int `json:"nextHalvingSupply"` LastHalvedAmount *big.Int `json:"lastHalvedAmount"` + MinGasPrice *big.Int `json:"minGasPrice"` BlockGasLimit uint64 `json:"blockGasLimit"` LambdaBA uint64 `json:"lambdaBA"` LambdaDKG uint64 `json:"lambdaDKG"` @@ -339,20 +340,19 @@ type DexconConfig struct { RoundLength uint64 `json:"roundLength"` MinBlockInterval uint64 `json:"minBlockInterval"` FineValues []*big.Int `json:"fineValues"` - MinGasPrice *big.Int `json:"minGasPrice"` } type dexconConfigSpecMarshaling struct { MinStake *math.HexOrDecimal256 NextHalvingSupply *math.HexOrDecimal256 LastHalvedAmount *math.HexOrDecimal256 - FineValues []*math.HexOrDecimal256 MinGasPrice *math.HexOrDecimal256 + FineValues []*math.HexOrDecimal256 } // String implements the stringer interface, returning the consensus engine details. func (d *DexconConfig) String() string { - return fmt.Sprintf("{GenesisCRSText: %v Owner: %v MinStake: %v LockupPeriod: %v MiningVelocity: %v NextHalvingSupply: %v LastHalvedAmount: %v BlockGasLimit: %v LambdaBA: %v LambdaDKG: %v NotarySetSize: %v DKGSetSize: %v RoundLength: %v MinBlockInterval: %v FineValues: %v MinGasPrice: %v}", + return fmt.Sprintf("{GenesisCRSText: %v Owner: %v MinStake: %v LockupPeriod: %v MiningVelocity: %v NextHalvingSupply: %v LastHalvedAmount: %v MinGasPrice: %v BlockGasLimit: %v LambdaBA: %v LambdaDKG: %v NotarySetSize: %v DKGSetSize: %v RoundLength: %v MinBlockInterval: %v FineValues: %v}", d.GenesisCRSText, d.Owner, d.MinStake, @@ -360,6 +360,7 @@ func (d *DexconConfig) String() string { d.MiningVelocity, d.NextHalvingSupply, d.LastHalvedAmount, + d.MinGasPrice, d.BlockGasLimit, d.LambdaBA, d.LambdaDKG, @@ -368,7 +369,6 @@ func (d *DexconConfig) String() string { d.RoundLength, d.MinBlockInterval, d.FineValues, - d.MinGasPrice, ) } |