aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authoraaronbuchwald <[email protected]>2020-09-16 23:29:35 -0400
committerGitHub <[email protected]>2020-09-16 23:29:35 -0400
commite0a89758b76ffc2a1bfbb73405b0324abe966d0b (patch)
treef49f09039088dbeb421c119a0c09f676f98696e5 /plugin/evm/vm.go
parentc5615034cf0991b55ca626ff052d2bb02049f9e3 (diff)
parentb2397fc5ac92bb324ac09594c87463ec37ea96e0 (diff)
Merge pull request #30 from ava-labs/build-block-blocks
Add nil to newBlockChan if block verification errors
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 993727e..67ae5ce 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -295,6 +295,7 @@ func (vm *VM) Initialize(
vm: vm,
}
if blk.Verify() != nil {
+ vm.newBlockChan <- nil
return errInvalidBlock
}
vm.newBlockChan <- blk