diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 07:04:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 07:04:21 +0800 |
commit | d15952c867f5c31fa68600754bd17c76a992a70e (patch) | |
tree | ed98e63739e9cc60e11a37dc9291de653297803a /ethchain/closure.go | |
parent | 1954ef47e67762f0308544e3a17976e4c3927e32 (diff) | |
download | go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar.gz go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar.bz2 go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar.lz go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar.xz go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.tar.zst go-tangerine-d15952c867f5c31fa68600754bd17c76a992a70e.zip |
Moved debug hook to Vm directly
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r-- | ethchain/closure.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go index 966e8254a..cc769de30 100644 --- a/ethchain/closure.go +++ b/ethchain/closure.go @@ -74,12 +74,10 @@ func (c *Closure) Address() []byte { return c.object.Address() } -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, *big.Int, error) { +func (c *Closure) Call(vm *Vm, args []byte) ([]byte, *big.Int, error) { c.Args = args - ret, err := vm.RunClosure(c, hook) + ret, err := vm.RunClosure(c) return ret, c.UsedGas, err } |