mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
more debug logs
This commit is contained in:
parent
548f7ea474
commit
badec8aa81
1 changed files with 3 additions and 1 deletions
|
|
@ -153,13 +153,15 @@ func newCallTracerObject(ctx *tracers.Context, cfg json.RawMessage) (*callTracer
|
||||||
|
|
||||||
// OnEnter is called when EVM enters a new scope (via call, create or selfdestruct).
|
// OnEnter is called when EVM enters a new scope (via call, create or selfdestruct).
|
||||||
func (t *callTracer) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
|
func (t *callTracer) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
|
||||||
fmt.Println("[JEREMYDEBUG] OnEnter: depth %d, from %s, to %s, input %s, gas %d, value %s", depth, from, to, input, gas, value)
|
fmt.Printf("[JEREMYDEBUG] OnEnter: depth %d, from %s, to %s, input %s, gas %d, value %s\n", depth, from, to, input, gas, value)
|
||||||
t.depth = depth
|
t.depth = depth
|
||||||
if t.config.OnlyTopCall && depth > 0 {
|
if t.config.OnlyTopCall && depth > 0 {
|
||||||
|
fmt.Println("[JEREMYDEBUG] OnEnter: OnlyTopCall is true and depth > 0")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Skip if tracing was interrupted
|
// Skip if tracing was interrupted
|
||||||
if t.interrupt.Load() {
|
if t.interrupt.Load() {
|
||||||
|
fmt.Println("[JEREMYDEBUG] OnEnter: tracing was interrupted")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue