erigon icon indicating copy to clipboard operation
erigon copied to clipboard

FR: output EVM stack and memory states for LOG0-4 operation in tracing

Open Yxang opened this issue 4 years ago • 4 comments

Rationale

Why should this feature exist?

It would make getting emitted event logs possible when making any custom eth call by trace_call rpc method with vmTrace param. I found a way from here that uses debug_traceCall to get event logs, but I failed in erigon, also debug_traceCall seems not very usable (I am also having #3494, #5365).

What are the use-cases?

Getting emitted logs for any custom eth call through trace_call. A few similar demands: https://github.com/ethereum/go-ethereum/issues/20694, link

Implementation

I already have a simple implementation https://github.com/ledgerwatch/erigon/commit/bef823af9a488bd2028314f779e14c9adda0228c. One of my concern is if this breaks any standard. I didn't find any detailed documentation that describes the behavior of vmTrace parameter or this rpc method.

Yxang avatar Oct 11 '22 11:10 Yxang

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar Nov 21 '22 03:11 github-actions[bot]

Bump

quickchase avatar Nov 25 '22 20:11 quickchase

That's a good idea. Bump

JrCx7scC avatar Jan 02 '23 07:01 JrCx7scC

After v2.33.0 debug_ methods should be usable to fetch logs by any custom call, closing this issue.

https://stackoverflow.com/questions/72064656/extracting-emitted-events-logs-from-geth-transaction-trace-debug-tracecall

Yxang avatar Feb 04 '23 08:02 Yxang