dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

hevm exec --trace or --jsontrace doesn't seem to output the full trace

Open t-anyu opened this issue 4 years ago • 4 comments

Hey,

I'm simulating some transactions and it seems that interactive debug mode shows me emmited events (LOG0,LOG1,...etc). However I can't seem to find it from jsontrace. And trace just seems to do nothing. Using precompiled binary of hevm 0.47.0 (Linux).

Any help would be appreciated.

Thanks

t-anyu avatar Jul 29 '21 23:07 t-anyu

Do you have a concrete example we can look at?

d-xo avatar Jul 30 '21 06:07 d-xo

Nvm, I misunderstand

MrChico avatar Aug 01 '21 10:08 MrChico

Hey, sorry for delay.

I don't have a full archive node, and using some Tx as an example could be troublesome since it might revert due to changed account balance. But when tracing a transaction, I don't seem to get all the LOG opcodes as in interactive mode. I haven't made step by step comparison with geth trace output.

And btw. I'm getting 1.7s - 3s per trace. Are there any ways to speedup? Or is the main bottleneck my geth node?

Thanks

t-anyu avatar Aug 03 '21 00:08 t-anyu

It's very hard to debug this without a concrete example of the issue that we can reproduce locally. I just tried seth run-tx --trace (which calls hevm exec --trace under the hood) against a few recent mainnet transactions and I saw logs in the trace output, and they matched exactly those shown by etherscan for the same transactions.

d-xo avatar Aug 03 '21 11:08 d-xo