From 85ef42c0ea651f0b228d4209b1b2598b24e12f1f Mon Sep 17 00:00:00 2001 From: wenbiao Date: Fri, 10 Dec 2021 21:49:56 +0800 Subject: [PATCH] eth/tracers: make js calltracer default, compatible with old version Signed-off-by: wenbiao --- eth/tracers/js/internal/tracers/assets.go | 4 ++-- eth/tracers/native/call.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/tracers/js/internal/tracers/assets.go b/eth/tracers/js/internal/tracers/assets.go index 37e3702400..e1b0947017 100644 --- a/eth/tracers/js/internal/tracers/assets.go +++ b/eth/tracers/js/internal/tracers/assets.go @@ -393,7 +393,7 @@ var _bindata = map[string]func() (*asset, error){ "4byte_tracer.js": _4byte_tracerJs, "4byte_tracer_legacy.js": _4byte_tracer_legacyJs, "bigram_tracer.js": bigram_tracerJs, - "call_tracer_js.js": call_tracer_jsJs, + "call_tracer.js": call_tracer_jsJs, "call_tracer_legacy.js": call_tracer_legacyJs, "evmdis_tracer.js": evmdis_tracerJs, "noop_tracer.js": noop_tracerJs, @@ -450,7 +450,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "4byte_tracer.js": {_4byte_tracerJs, map[string]*bintree{}}, "4byte_tracer_legacy.js": {_4byte_tracer_legacyJs, map[string]*bintree{}}, "bigram_tracer.js": {bigram_tracerJs, map[string]*bintree{}}, - "call_tracer_js.js": {call_tracer_jsJs, map[string]*bintree{}}, + "call_tracer.js": {call_tracer_jsJs, map[string]*bintree{}}, "call_tracer_legacy.js": {call_tracer_legacyJs, map[string]*bintree{}}, "evmdis_tracer.js": {evmdis_tracerJs, map[string]*bintree{}}, "noop_tracer.js": {noop_tracerJs, map[string]*bintree{}}, diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go index 16ea75aa4a..0ec1251eb6 100644 --- a/eth/tracers/native/call.go +++ b/eth/tracers/native/call.go @@ -31,7 +31,7 @@ import ( ) func init() { - register("callTracer", newCallTracer) + register("callTracerNative", newCallTracer) } type callFrame struct {