Skip to content

Add log index field to call tracer output #277

@pgherveou

Description

@pgherveou

Context

Geth v1.17.0 added a new index field to call tracer log entries (ethereum/go-ethereum#33566, ethereum/go-ethereum#33629).

This field represents the monotonic log index within the transaction (matching logIndex in receipts), which is distinct from the existing position field that represents ordering within the call tree.

Example of the new format:

"logs": [{
  "address": "0xd335...",
  "topics": [...],
  "data": "0x...",
  "position": "0x0",
  "index": "0x0"
}]

Feature request

pallet-revive's eth-rpc call tracer should include the index field in log entries to match Geth v1.17.0+ behavior.

Test fixtures

Once implemented, the test fixtures in evm-test-suite should be regenerated against a Geth version that includes this patch (>= v1.17.0). The CI is currently pinned to v1.16.9 to avoid snapshot mismatches.

Metadata

Metadata

Assignees

Labels

EVMProblem occurs at the execution stage for EVMfeature

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions