diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-06 18:13:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-06 18:13:13 +0800 |
commit | cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf (patch) | |
tree | 24865a9b57fc0d0528280ba0364146b23d3a56ae /ethereal/ui/debugger.go | |
parent | a107a5db052c53f54e4023111a8cc97fbf6f51e2 (diff) | |
download | go-tangerine-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.tar.gz go-tangerine-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.tar.zst go-tangerine-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.zip |
debugger output
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r-- | ethereal/ui/debugger.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go index eb68b51dc..a4489cdf4 100644 --- a/ethereal/ui/debugger.go +++ b/ethereal/ui/debugger.go @@ -117,7 +117,8 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data self.Logf("callsize %d", len(script)) go func() { ret, g, err := callerClosure.Call(vm, data, self.Db.halting) - self.Logln("gas usage", g, "total price =", new(big.Int).Mul(g, gasPrice)) + tot := new(big.Int).Mul(g, gasPrice) + self.Logf("gas usage %v total price = %v (%v)", g, tot, ethutil.CurrencyToString(tot)) if err != nil { self.Logln("exited with errors:", err) } else { |