aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Yin <[email protected]>2020-09-15 14:51:25 -0400
committerGitHub <[email protected]>2020-09-15 14:51:25 -0400
commit0661930fc42fafef268d50c20ddc9ab5d3f24c2c (patch)
treead5b81f3fa0586e49f98f55ef7497833de050b4b
parentc90548b4e062d309395f9a6cc0873ef03bb58d0d (diff)
parentb0a6f5024b70ae4c8ea0f856b0e648ff704b11d0 (diff)
Merge pull request #17 from ava-labs/min-gas-price
Enforce minimum gas price on local transactions
-rw-r--r--plugin/evm/vm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 6a3fcd5..065134f 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -251,6 +251,7 @@ func (vm *VM) Initialize(
config.Miner.GasPrice = minGasPrice
config.GPO.Default = minGasPrice
config.TxPool.PriceLimit = minGasPrice.Uint64()
+ config.TxPool.NoLocals = true
if err := config.SetGCMode("archive"); err != nil {
panic(err)