From 86b30777b8d254d632f90357e35095c4117d9aee Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Wed, 19 Apr 2023 10:32:26 -0700 Subject: [PATCH] working commit 4/19 --- eth/tracers/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 54c32449a..704abe932 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -957,14 +957,17 @@ func (api *API) traceTx(ctx context.Context, message *core.Message, txctx *Conte if config == nil { config = &TraceConfig{} } + log.Error("outside of geth condition", "config", config.Tracer) // Default tracer is the struct logger tracer = logger.NewStructLogger(config.Config) if config.Tracer != nil { // Get the tracer from the plugin loader //begin PluGeth code injection if tr, ok := getPluginTracer(*config.Tracer); ok { + log.Error("inside geth", "tracer config", *config.Tracer) tracer = tr(statedb, vmctx) } else { + log.Error("default geth condition", "config", config.Tracer) tracer, err = DefaultDirectory.New(*config.Tracer, txctx, config.TracerConfig) if err != nil { return nil, err