Commit 05fd1daf authored by obscuren's avatar obscuren

additional log

parent 0d57ca48
...@@ -48,7 +48,7 @@ var ( ...@@ -48,7 +48,7 @@ var (
S256 = ethutil.S256 S256 = ethutil.S256
) )
const MaxCallDepth = 1025 const MaxCallDepth = 1024
func calcMemSize(off, l *big.Int) *big.Int { func calcMemSize(off, l *big.Int) *big.Int {
if l.Cmp(ethutil.Big0) == 0 { if l.Cmp(ethutil.Big0) == 0 {
......
...@@ -49,8 +49,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price * ...@@ -49,8 +49,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
closure := NewClosure(msg, caller, me, code, gas, price) closure := NewClosure(msg, caller, me, code, gas, price)
if self.env.Depth() == MaxCallDepth { if self.env.Depth() == MaxCallDepth {
closure.UseGas(gas) //closure.UseGas(gas)
return closure.Return(nil), DepthError{} return closure.Return(nil), DepthError{}
} }
...@@ -885,7 +884,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price * ...@@ -885,7 +884,7 @@ func (self *DebugVm) Run(me, caller ClosureRef, code []byte, value, gas, price *
mem.Set(retOffset.Uint64(), retSize.Uint64(), ret) mem.Set(retOffset.Uint64(), retSize.Uint64(), ret)
} }
self.Printf("resume %x", closure.Address()) self.Printf("resume %x (%v)", closure.Address(), closure.Gas)
// Debug hook // Debug hook
if self.Dbg != nil { if self.Dbg != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment