diff options
author | Determinant <[email protected]> | 2020-09-20 16:53:47 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-09-20 16:53:47 -0400 |
commit | e86ccf90bd33de6dc8694eb914b7b541aca53db6 (patch) | |
tree | 39a14ff66c42f95b805ce6fcf040c305460f5fce /plugin/evm/block.go | |
parent | 30fae395d465eb79ee8bc122d67a58cea3ccfcf2 (diff) | |
parent | e233062dfde3ac938b937c860bc96caf57a7fe3f (diff) |
Merge remote-tracking branch 'origin/master' into masterv0.3.3-rc.3
Diffstat (limited to 'plugin/evm/block.go')
-rw-r--r-- | plugin/evm/block.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go index 556f171..77a85b3 100644 --- a/plugin/evm/block.go +++ b/plugin/evm/block.go @@ -8,6 +8,7 @@ import ( "fmt" "github.com/ava-labs/coreth/core/types" + "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" @@ -80,7 +81,7 @@ func (b *Block) Verify() error { if b.vm.ctx.IsBootstrapped() { // Ensure the minimum gas price is paid for every transaction for _, tx := range b.ethBlock.Transactions() { - if tx.GasPrice().Cmp(minGasPrice) < 0 { + if tx.GasPrice().Cmp(params.MinGasPrice) < 0 { return errInvalidBlock } } |