aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r--ethchain/vm.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go
index 0d9e8599e..9821a839a 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -543,7 +543,9 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
pc.Add(pc, ethutil.Big1)
if hook != nil {
- hook(step-1, op, mem, stack, closure.Object())
+ if !hook(step-1, op, mem, stack, closure.Object()) {
+ return nil, nil
+ }
}
}
}