go-ethereum/eth/tracers
Daniel Liu 95adac8c1f
eth/tracers: add withLog to callTracer #25991 (#1307)
In some cases, it is desirable to capture what is triggered by each trace, when using the `callTracer`. For example: call `USDT.transfer` will trigger a `Transfer(from, to, value)` event.

This PR adds the option to capture logs to the call tracer, by specifying `{"withLog": true}` in the tracerconfig.
Any logs belonging to failed/reverted call-scopes are removed from the output, to prevent interpretation mistakes.

Signed-off-by: Delweng <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2025-09-09 08:10:29 +08:00
..
internal/tracetest eth/tracers: add withLog to callTracer #25991 (#1307) 2025-09-09 08:10:29 +08:00
js eth/tracers: fix gasUsed for native and JS tracers #26048 (#1305) 2025-09-09 07:57:17 +08:00
logger eth/tracers: refactor traceTx to separate out struct logging #24326 (#1278) 2025-09-08 20:55:06 +08:00
native eth/tracers: add withLog to callTracer #25991 (#1307) 2025-09-09 08:10:29 +08:00
api.go eth/traces: add state limit #25812 (#1300) 2025-09-09 07:03:24 +08:00
api_test.go eth/tracers: improve flaky tests #25918 (#1301) 2025-09-09 07:10:44 +08:00
tracers.go eth/tracers: package restructuring #23857 (#1266) 2025-08-29 05:26:36 +08:00
tracers_test.go eth/tracers: fix typo and linter #25020 #24783 #25551 (#1286) 2025-09-08 21:15:42 +08:00
tracker.go eth/traces: add state limit #25812 (#1300) 2025-09-09 07:03:24 +08:00
tracker_test.go eth/traces: add state limit #25812 (#1300) 2025-09-09 07:03:24 +08:00