aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Smith <[email protected]>2020-08-24 22:09:52 -0700
committerTyler Smith <[email protected]>2020-08-24 22:09:52 -0700
commitb53cf297e5cccd577af725bacdb7f3ccb61336bd (patch)
treefaf6aa31f1fcf501f14d6c23e9b687d2b16d6e12
parent9f9c3ac8b840e99db942c01505be987d8b2663d4 (diff)
BUGFIX: Fix minGasPrice.
-rw-r--r--plugin/evm/vm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index f656d02..b4026a8 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -20,6 +20,7 @@ import (
"github.com/ava-labs/coreth/core/types"
"github.com/ava-labs/coreth/eth"
"github.com/ava-labs/coreth/node"
+ "github.com/ava-labs/coreth/params"
"github.com/ava-labs/go-ethereum/common"
ethcrypto "github.com/ava-labs/go-ethereum/crypto"
@@ -81,8 +82,8 @@ const (
var (
// minGasPrice is the number of nAVAX required per gas unit for a transaction
- // to be valid
- minGasPrice = big.NewInt(47)
+ // to be valid, measured in wei
+ minGasPrice = big.NewInt(47*params.GWei)
txFee = units.MilliAvax