diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 07:04:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 07:04:32 +0800 |
commit | e5b45d1c86d51a61f666b8a80af78c790c57ba13 (patch) | |
tree | 360ac0756a2a2bd18f56fdab6a5f1f41370f0d20 | |
parent | 677de48f6cd849fde7f8a4733bbab4b992471a13 (diff) | |
download | dexon-e5b45d1c86d51a61f666b8a80af78c790c57ba13.tar.gz dexon-e5b45d1c86d51a61f666b8a80af78c790c57ba13.tar.zst dexon-e5b45d1c86d51a61f666b8a80af78c790c57ba13.zip |
VM Update
-rw-r--r-- | ethereal/debugger.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethereal/debugger.go b/ethereal/debugger.go index 416155835..763b26063 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 { |