go-ethereum/eth
Daniel Liu 20e3de2c4b
eth/tracers: add disableCode/Storage options for prestateTracer #30648 (#1498)
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: Delweng <delweng@gmail.com>
Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
2025-09-17 08:22:13 +08:00
..
bft add syncinfo pool (#1236) 2025-07-28 01:43:41 -07:00
downloader eth/downloader, eth/tracer: fix typos in comments #29707 (#1472) 2025-09-13 10:30:25 +08:00
ethconfig cmd, eth: rename config and flag to VMTraceJsonConfig #29573 (#1490) 2025-09-13 10:52:31 +08:00
fetcher eth/fetcher: fix copyloopvar for Go 1.22+ (#1505) 2025-09-17 08:21:23 +08:00
filters eth/filters: exit early if topics-filter has more than 4 topics #28494 (#1503) 2025-09-17 08:20:18 +08:00
gasprice all: rename ChainId to ChainID #16853 (#1456) 2025-09-09 22:54:34 +08:00
hooks eth/tracers: live chain tracing with hooks #29189 (#1352) 2025-09-09 17:30:56 +08:00
tracers eth/tracers: add disableCode/Storage options for prestateTracer #30648 (#1498) 2025-09-17 08:22:13 +08:00
util feat: add TIPEpochHalving, better style 2025-03-25 22:16:35 +08:00
api.go all: rename ChainId to ChainID #16853 (#1456) 2025-09-09 22:54:34 +08:00
api_backend.go all: fix inconsistent receiver name (#1494) 2025-09-17 08:15:23 +08:00
api_test.go eth/tracers: live chain tracing with hooks #29189 (#1352) 2025-09-09 17:30:56 +08:00
backend.go cmd, eth: rename config and flag to VMTraceJsonConfig #29573 (#1490) 2025-09-13 10:52:31 +08:00
backend_test.go Move consensus hooks to its own package 2021-10-10 16:04:32 +11:00
bloombits.go core, eth, params: make indexer configurable (#17188) 2025-03-10 15:41:53 +08:00
handler.go eth: skip VerifyHeader in traceBlock to fix #1185 (#1265) 2025-07-26 18:18:50 +08:00
handler_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
helper_test.go core: move genesis alloc types to core/types (#29003) 2025-01-24 16:54:12 +08:00
metrics.go metrics, cmd/XDC: change init-process of metrics (#30814) 2024-12-13 14:00:14 +08:00
peer.go all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2025-01-24 16:54:11 +08:00
protocol.go core: remove unused error from TxPool.Pending (#23720) 2024-11-01 11:36:53 +08:00
protocol_test.go eth: set networkID to chainId by default (#28250) 2025-02-17 09:17:31 +08:00
state_accessor.go eth/tracers: live chain tracing with hooks #29189 (#1352) 2025-09-09 17:30:56 +08:00
sync.go core: remove unused error from TxPool.Pending (#23720) 2024-11-01 11:36:53 +08:00
sync_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00