go-ethereum/eth/tracers/native
Delweng 98056e1ef2
eth/tracers: add disableCode/Storage options for prestateTracer (#30648)
When using the prestateTracer, in some cases users are only concerned
with balances or nonce information, and are not interested in the lengthy
contract code or storage data.

Therefore, this PR introduces two new configuration options in the
`prestateTracerConfig` structure:
- `disableCode`
- `disableStorage`

These options allow users to control whether the tracer returns contract
code and storage data during execution tracing. By setting these
options, users can more flexibly customize their needs and focus on
obtaining information that is more critical and relevant to their
specific use cases.

These options work with the default mode as well as `diffMode: true`.

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
2024-10-29 07:35:06 +01:00
..
4byte.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
call_flat_test.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
call_flat.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
call.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
gen_account_json.go eth/tracers: simplify test framework (#25973) 2022-10-21 17:55:15 +02:00
gen_callframe_json.go eth/tracers/native: set created address to nil in case of failure (#26779) 2023-03-07 14:39:11 +01:00
gen_flatcallaction_json.go eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377) 2023-02-28 13:54:37 +03:30
gen_flatcallresult_json.go eth/tracers: add native flatCallTracer (aka parity style tracer) (#26377) 2023-02-28 13:54:37 +03:30
mux.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
noop.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
prestate.go eth/tracers: add disableCode/Storage options for prestateTracer (#30648) 2024-10-29 07:35:06 +01:00