debugger output
This commit is contained in:
parent
a107a5db05
commit
cc20b0e3a0
|
@ -117,7 +117,8 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
|
||||||
self.Logf("callsize %d", len(script))
|
self.Logf("callsize %d", len(script))
|
||||||
go func() {
|
go func() {
|
||||||
ret, g, err := callerClosure.Call(vm, data, self.Db.halting)
|
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 {
|
if err != nil {
|
||||||
self.Logln("exited with errors:", err)
|
self.Logln("exited with errors:", err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue