aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorStephenButtolph <[email protected]>2020-05-30 14:31:33 -0400
committerStephenButtolph <[email protected]>2020-05-30 14:31:33 -0400
commit803878756eafc3f3c86198ad9f5a8893a63cf7df (patch)
treeabd1dfdfa46bfbba49eec29756134b56bf9ebbb6 /plugin/evm/vm.go
parentaddb553425e60548a60d45c682d18fc4e78e55de (diff)
Added error handling for the denali releasev0.2.0
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index a9011ea..2dd0dd8 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -252,13 +252,14 @@ func (vm *VM) Initialize(
}
// Shutdown implements the snowman.ChainVM interface
-func (vm *VM) Shutdown() {
+func (vm *VM) Shutdown() error {
if vm.ctx == nil {
- return
+ return nil
}
vm.writeBackMetadata()
vm.chain.Stop()
+ return nil
}
// BuildBlock implements the snowman.ChainVM interface