go-ethereum/eth/tracers
Sina Mahmoodi fc3e6d0162
eth/tracers: use gencodec for native tracers (#25637)
The call tracer and prestate tracer store data JSON-encoded in memory. In order to support alternative encodings (specifically RLP), it's better to keep data a native format during tracing. This PR does marshalling at the end, using gencodec.

OBS! 
This PR changes the call tracer result slightly:

-  Order of type and value fields are changed (should not matter). 
-  Output fields are completely omitted when they're empty (no more output: "0x"). Previously, this was only _sometimes_ omitted (e.g. when call ended in a non-revert error) and otherwise 0x when the output was actually empty.
2022-09-26 18:35:44 +02:00
..
internal/tracetest all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
js eth/tracers: pad memory slice on OOB case (#25213) 2022-09-26 09:56:45 +02:00
logger core, eth: pre-allocate map in storage copy (#25279) 2022-07-12 10:08:45 +03:00
native eth/tracers: use gencodec for native tracers (#25637) 2022-09-26 18:35:44 +02:00
api_test.go eth/tracer: fix broken test (#25715) 2022-09-08 08:06:06 +02:00
api.go eth/tracers: fix trace config for TraceCall (#25821) 2022-09-21 09:55:48 +02:00
tracers_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
tracers.go eth/tracers: add onlyTopCall option to callTracer (#25430) 2022-08-09 11:04:57 +02:00