aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
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