aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/block.go
diff options
context:
space:
mode:
authorTed Yin <[email protected]>2020-09-20 16:08:07 -0400
committerGitHub <[email protected]>2020-09-20 16:08:07 -0400
commite233062dfde3ac938b937c860bc96caf57a7fe3f (patch)
tree0c4878ab45c8420506c7c0d6ee27534c5f3789ad /plugin/evm/block.go
parent9284f6d1193247adfaa29025934a3514a46188a3 (diff)
parent99a0be028ab8df4bc6028f9a105e131a8984a599 (diff)
Merge pull request #38 from ava-labs/gas-estimate
Fix handling of requests for pending block
Diffstat (limited to 'plugin/evm/block.go')
-rw-r--r--plugin/evm/block.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go
index 1e1d710..ee5b7c6 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
}
}