go-ethereum/eth/tracers/native
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
..
4byte.go eth/tracers: use gencodec for native tracers #25637 (#1296) 2025-09-09 06:40:01 +08:00
call.go eth/tracers: add withLog to callTracer #25991 (#1307) 2025-09-09 08:10:29 +08:00
contract.go eth/tracers: use gencodec for native tracers #25637 (#1296) 2025-09-09 06:40:01 +08:00
gen_account_json.go eth/tracers: simplify test framework #25973 (#1304) 2025-09-09 07:46:56 +08:00
gen_callframe_json.go eth/tracers: add withLog to callTracer #25991 (#1307) 2025-09-09 08:10:29 +08:00
noop.go core,eth: implement tx-level hooks for tracers #24510 (#1277) 2025-09-08 17:53:21 +08:00
prestate.go eth/tracers: simplify test framework #25973 (#1304) 2025-09-09 07:46:56 +08:00
tracer.go eth/tracers: package restructuring #23857 (#1266) 2025-08-29 05:26:36 +08:00