erigon-pulse/eth/tracers
David d20de9508e
add eventlog index when using callTracer withLog (#8195)
When we call the debug_traceXXX API provided by Erigon, the withLog
option in tracerConfig is very helpful.

However, currently, the tracer cannot guarantee that the order of logs
output is consistent with the event logs returned in the transaction
receipt. This may make it difficult to use the output of the APIs. If
you need to access event logs in order, it is recommended to use the
event logs returned in the transaction receipt.

Here is an example to illustrate the reason why the order of callTracer
logs and receipt eventlogs can be inconsistent:

In a call trace tree, if a call has multiple logs and this call has
multiple child calls, and logs are also output in the child calls, the
logs of the child calls may be output between the logs of the parent
call in receipt.

I add an index field of log to identify log index of the logs in tracer
result, and it helps me a lot.
2023-09-14 16:36:49 +07:00
..
internal/tracetest Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
js Remove ETC-specific DAOForkSupport=false functionality (#7075) 2023-03-10 12:10:11 +00:00
logger Move hexutil.Bytes to erigon-lib (#7305) 2023-04-13 11:19:02 +00:00
native add eventlog index when using callTracer withLog (#8195) 2023-09-14 16:36:49 +07:00
api.go State sync transactions added to debug_traceBlockByNumber call (#6830) 2023-02-20 08:04:11 +00:00
tracer.go Native tracers step 7 - restructure js tracer files (#6415) 2022-12-23 18:10:37 +00:00
tracers_test.go Update execution-spec-tests to v1.0.1 (#7980) 2023-08-08 15:01:35 +02:00
tracers.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00