mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
cad36b792c
First posted [here](https://github.com/ledgerwatch/erigon/pull/8195) with bugs, which fixed in this PR. 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. |
||
---|---|---|
.. | ||
internal/tracetest | ||
js | ||
logger | ||
native | ||
api.go | ||
tracer.go | ||
tracers_test.go | ||
tracers.go |