diff options
author | Aaron Buchwald <[email protected]> | 2020-09-16 11:55:36 -0400 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-09-16 11:55:36 -0400 |
commit | b2397fc5ac92bb324ac09594c87463ec37ea96e0 (patch) | |
tree | f48e8ac5d1b5214a06491f49b625e95625a5bc7b | |
parent | 7d1388c743b4ec8f4a86bea95bfada785dee83f7 (diff) |
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 9ab4781..d9ddd70 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 |