diff options
author | aaronbuchwald <[email protected]> | 2020-09-16 23:29:35 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-16 23:29:35 -0400 |
commit | e0a89758b76ffc2a1bfbb73405b0324abe966d0b (patch) | |
tree | f49f09039088dbeb421c119a0c09f676f98696e5 | |
parent | c5615034cf0991b55ca626ff052d2bb02049f9e3 (diff) | |
parent | b2397fc5ac92bb324ac09594c87463ec37ea96e0 (diff) |
Merge pull request #30 from ava-labs/build-block-blocks
Add nil to newBlockChan if block verification errors
-rw-r--r-- | plugin/evm/vm.go | 1 |
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 |