erigon-pulse/eth/tracers/native
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
..
4byte.go Convert *vm.EVM to vm.VMInterface in Tracers (#6590) 2023-01-16 22:28:50 +00:00
call.go add eventlog index when using callTracer withLog (#8195) 2023-09-14 16:36:49 +07:00
gen_account_json.go Move hexutil.Bytes to erigon-lib (#7305) 2023-04-13 11:19:02 +00:00
gen_callframe_json.go Move hexutil.Bytes to erigon-lib (#7305) 2023-04-13 11:19:02 +00:00
mux.go Convert *vm.EVM to vm.VMInterface in Tracers (#6590) 2023-01-16 22:28:50 +00:00
noop.go Convert *vm.EVM to vm.VMInterface in Tracers (#6590) 2023-01-16 22:28:50 +00:00
prestate.go fix debug_traceTransaction get noce overflow (#8100) 2023-08-30 15:31:13 +07:00
tracer.go Native tracers step 9 - add native tracers (#6434) 2022-12-25 07:28:41 +00:00