Skip to content

Commit 787a3b1

Browse files
authored
eth/tracers: make native calltracer default (#23867)
1 parent 851256e commit 787a3b1

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

eth/tracers/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func TestOverriddenTraceCall(t *testing.T) {
325325
tx, _ := types.SignTx(types.NewTransaction(uint64(i), accounts[1].addr, big.NewInt(1000), params.TxGas, b.BaseFee(), nil), signer, accounts[0].key)
326326
b.AddTx(tx)
327327
}))
328-
randomAccounts, tracer := newAccounts(3), "callTracer"
328+
randomAccounts, tracer := newAccounts(3), "callTracerJs"
329329

330330
var testSuite = []struct {
331331
blockNumber rpc.BlockNumber

eth/tracers/internal/tracers/assets.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

eth/tracers/native/call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
)
3232

3333
func init() {
34-
tracers.RegisterNativeTracer("callTracerNative", NewCallTracer)
34+
tracers.RegisterNativeTracer("callTracer", NewCallTracer)
3535
}
3636

3737
type callFrame struct {

eth/tracers/testing/calltrace_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ func TestCallTracerLegacy(t *testing.T) {
6161
testCallTracer("callTracerLegacy", "call_tracer_legacy", t)
6262
}
6363

64-
func TestCallTracer(t *testing.T) {
65-
testCallTracer("callTracer", "call_tracer", t)
64+
func TestCallTracerJs(t *testing.T) {
65+
testCallTracer("callTracerJs", "call_tracer", t)
6666
}
6767

6868
func TestCallTracerNative(t *testing.T) {
69-
testCallTracer("callTracerNative", "call_tracer", t)
69+
testCallTracer("callTracer", "call_tracer", t)
7070
}
7171

7272
func testCallTracer(tracerName string, dirPath string, t *testing.T) {

eth/tracers/tracers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func TestZeroValueToNotExitCall(t *testing.T) {
148148
}
149149
_, statedb := tests.MakePreState(rawdb.NewMemoryDatabase(), alloc, false)
150150
// Create the tracer, the EVM environment and run it
151-
tracer, err := New("callTracer", new(Context))
151+
tracer, err := New("callTracerJs", new(Context))
152152
if err != nil {
153153
t.Fatalf("failed to create call tracer: %v", err)
154154
}

0 commit comments

Comments
 (0)