poc8
obscuren 11 years ago
parent 677de48f6c
commit e5b45d1c86
  1. 3
      ethereal/debugger.go

@ -124,11 +124,12 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
Value: ethutil.Big(valueStr), Value: ethutil.Big(valueStr),
}) })
vm.Verbose = true vm.Verbose = true
vm.Hook = self.Db.halting
self.Db.done = false self.Db.done = false
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)
tot := 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)) self.Logf("gas usage %v total price = %v (%v)", g, tot, ethutil.CurrencyToString(tot))
if err != nil { if err != nil {

Loading…
Cancel
Save