dapptools
dapptools copied to clipboard
hevm exec --trace or --jsontrace doesn't seem to output the full trace
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
Do you have a concrete example we can look at?
Nvm, I misunderstand
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
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.