aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-06 18:13:13 +0800
committerobscuren <geffobscura@gmail.com>2014-06-06 18:13:13 +0800
commitcc20b0e3a0754c77fe04a8b5c5668d0eda955bcf (patch)
tree24865a9b57fc0d0528280ba0364146b23d3a56ae /ethereal
parenta107a5db052c53f54e4023111a8cc97fbf6f51e2 (diff)
downloaddexon-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.tar.gz
dexon-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.tar.zst
dexon-cc20b0e3a0754c77fe04a8b5c5668d0eda955bcf.zip
debugger output
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/ui/debugger.go3
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 {