debugger output

This commit is contained in:
obscuren 2014-06-06 12:13:13 +02:00
parent a107a5db05
commit cc20b0e3a0
1 changed files with 2 additions and 1 deletions

View File

@ -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 {