aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-09-20 16:53:47 -0400
committerDeterminant <tederminant@gmail.com>2020-09-20 16:53:47 -0400
commite86ccf90bd33de6dc8694eb914b7b541aca53db6 (patch)
tree39a14ff66c42f95b805ce6fcf040c305460f5fce /plugin/evm/vm.go
parent30fae395d465eb79ee8bc122d67a58cea3ccfcf2 (diff)
parente233062dfde3ac938b937c860bc96caf57a7fe3f (diff)
Merge remote-tracking branch 'origin/master' into masterv0.3.3-rc.3
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 13d4d3f..2c6dc1a 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -87,10 +87,6 @@ const (
)
var (
- // minGasPrice is the number of nAVAX required per gas unit for a transaction
- // to be valid, measured in wei
- minGasPrice = big.NewInt(470 * params.GWei)
-
txFee = units.MilliAvax
errEmptyBlock = errors.New("empty block")
@@ -258,10 +254,10 @@ func (vm *VM) Initialize(
// Set minimum price for mining and default gas price oracle value to the min
// gas price to prevent so transactions and blocks all use the correct fees
- config.Miner.GasPrice = minGasPrice
+ config.Miner.GasPrice = params.MinGasPrice
config.RPCTxFeeCap = 100 // 100 AVAX
- config.GPO.Default = minGasPrice
- config.TxPool.PriceLimit = minGasPrice.Uint64()
+ config.GPO.Default = params.MinGasPrice
+ config.TxPool.PriceLimit = params.MinGasPrice.Uint64()
config.TxPool.NoLocals = true
if err := config.SetGCMode("archive"); err != nil {