From e5b45d1c86d51a61f666b8a80af78c790c57ba13 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 2 Jul 2014 01:04:32 +0200 Subject: [PATCH] VM Update --- ethereal/debugger.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereal/debugger.go b/ethereal/debugger.go index 4161558359..763b26063c 100644 --- a/ethereal/debugger.go +++ b/ethereal/debugger.go @@ -124,11 +124,12 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data Value: ethutil.Big(valueStr), }) vm.Verbose = true + vm.Hook = self.Db.halting self.Db.done = false self.Logf("callsize %d", len(script)) go func() { - ret, g, err := callerClosure.Call(vm, data, self.Db.halting) + ret, g, err := callerClosure.Call(vm, data) tot := new(big.Int).Mul(g, gasPrice) self.Logf("gas usage %v total price = %v (%v)", g, tot, ethutil.CurrencyToString(tot)) if err != nil {