From b53cf297e5cccd577af725bacdb7f3ccb61336bd Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Mon, 24 Aug 2020 22:09:52 -0700 Subject: BUGFIX: Fix minGasPrice. --- plugin/evm/vm.go | 5 +++-- 1 file 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 -- cgit v1.2.3