go-ethereum/eth/tracers
Chase Wright c787778ed4
eth/tracers/logger: fix legacy structLog JSON encoding
Fix several issues in the legacy structLog JSON format produced by the
struct logger tracer:

- Error field: change from string to *string so that error is truly
  omitted (rather than serialised as "") when there is no error.
- Memory words: zero-pad each 32-byte chunk before hex-encoding so the
  output always matches the expected 64-character format instead of
  emitting a truncated hex string for partial words.
- Storage/ReturnData: use hexutil.Encode / common.Hash.Hex() to produce
  consistent 0x-prefixed output rather than bare %x formatting.

Add tests that cover the legacy JSON shape directly (TestStructLogLegacyJSONSpecFormatting),
and two integration-level tracer tests verifying that refund counters and
storage snapshots are captured correctly and that hard-failure vs revert
return values are handled as specified.
2026-03-26 10:34:02 -05:00
..
internal core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
js core: miner: reduce allocations in block building (#33375) 2026-02-03 08:19:16 +01:00
live eth/tracers: fix supply tracer uncle accounting (#31882) 2025-08-26 15:44:16 +02:00
logger eth/tracers/logger: fix legacy structLog JSON encoding 2026-03-26 10:34:02 -05:00
native cmd/evm: add --opcode.count flag to t8n (#33800) 2026-02-17 20:42:53 +01:00
api.go core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
api_test.go eth/tracers/logger: fix legacy structLog JSON encoding 2026-03-26 10:34:02 -05:00
dir.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
live.go eth/tracers: various fixes (#30540) 2024-10-17 06:51:47 +02:00
tracers_test.go core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
tracker.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00
tracker_test.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00