go-ethereum/eth/tracers/internal/tracetest/testdata/call_tracer_flat
Sina M 064f37d6f6
eth/tracers: live chain tracing with hooks (#29189)
Here we add a Go API for running tracing plugins within the main block import process. 

As an advanced user of geth, you can now create a Go file in eth/tracers/live/, and within
that file register your custom tracer implementation. Then recompile geth and select your tracer
on the command line. Hooks defined in the tracer will run whenever a block is processed.

The hook system is defined in package core/tracing. It uses a struct with callbacks, instead of 
requiring an interface, for several reasons:

- We plan to keep this API stable long-term. The core/tracing hook API does not depend on
  on deep geth internals.
- There are a lot of hooks, and tracers will only need some of them. Using a struct allows you
   to implement only the hooks you want to actually use.

All existing tracers in eth/tracers/native have been rewritten to use the new hook system.

This change breaks compatibility with the vm.EVMLogger interface that we used to have.
If you are a user of vm.EVMLogger, please migrate to core/tracing, and sorry for breaking
your stuff. But we just couldn't have both the old and new tracing APIs coexist in the EVM.

---------

Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2024-03-22 18:53:53 +01:00
..
big_slow.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
callcode_precompiled_fail_hide.json eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
callcode_precompiled_oog.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
callcode_precompiled_throw.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
create.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
deep_calls.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
delegatecall_parent_value.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
delegatecall.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
gas.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
include_precompiled.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
inner_create_oog_outer_throw.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
inner_instafail.json eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
inner_precompiled_wrong_gas.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
inner_throw_outer_revert.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
nested_create2_action_gas.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
nested_create_action_gas.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
nested_create_inerror.json eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
nested_create.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
nested_pointer_issue.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
oog.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
option_convert_parity_errors.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
result_output.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
revert_reason.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
revert.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
selfdestruct.json eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
simple_onlytop.json eth/tracers: fix flatCallTracer crasher (#27304) 2023-05-23 11:02:50 +02:00
simple.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
skip_no_balance_error.json eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
staticcall_precompiled.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
suicide.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00
throw.json eth/tracers: report correct gasLimit in call tracers (#27029) 2023-04-04 12:34:23 +02:00