aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/closure.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-27 19:32:31 +0800
committerobscuren <geffobscura@gmail.com>2014-05-27 19:32:31 +0800
commit4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0 (patch)
treee0b6207273705f7cfb88b9e8b4b4453ae9abd49a /ethchain/closure.go
parentaba3066658a32723543f9e4eda74a14ef140fc0e (diff)
downloadgo-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar.gz
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar.bz2
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar.lz
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar.xz
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.tar.zst
go-tangerine-4eb1771e67ee2c66d5fb86c2b5961d84e40f7dd0.zip
Hooks can now quit the vm
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r--ethchain/closure.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go
index e65cfd252..c935ed50a 100644
--- a/ethchain/closure.go
+++ b/ethchain/closure.go
@@ -72,7 +72,7 @@ func (c *Closure) Address() []byte {
return c.object.Address()
}
-type DebugHook func(step int, op OpCode, mem *Memory, stack *Stack, stateObject *StateObject)
+type DebugHook func(step int, op OpCode, mem *Memory, stack *Stack, stateObject *StateObject) bool
func (c *Closure) Call(vm *Vm, args []byte, hook DebugHook) ([]byte, error) {
c.Args = args