aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-09-17 03:23:13 -0400
committerDeterminant <tederminant@gmail.com>2020-09-17 03:23:13 -0400
commit8123ec9caeb1917519c1f8f67f386df142578728 (patch)
treed35e7f7621796ebac67bf3a2edf845da0e2cfef2
parentaedd4b46cdc0a48c1b06a3e920bf57f8c28d401d (diff)
...
-rw-r--r--plugin/evm/vm.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index c9836c6..73a97e8 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -24,6 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
+ "github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/rpc"
@@ -356,13 +357,15 @@ func (vm *VM) Initialize(
for {
select {
case e := <-vm.newTxPoolHeadChan.Chan():
- switch h := e.Data.(core.NewTxPoolHeadEvent) {
+ switch h := e.Data.(type) {
+ case core.NewMinedBlockEvent:
vm.txPoolStabilizedLock.Lock()
if vm.txPoolStabilizedHead == h.Block.Hash() {
vm.txPoolStabilizedOk <- struct{}{}
vm.txPoolStabilizedHead = common.Hash{}
}
vm.txPoolStabilizedLock.Unlock()
+ default:
}
}
}