-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Labels

Description
System information
Geth version: v1.10.2
Expected behaviour
- When getting block traces using
traceBlockByHash
, the response should be deterministic - For a transaction with
Success
status, should not get "execution reverted" trace error
Actual behaviour
In Ethereum mainnet
- Run
debug.traceBlockByHash("0x27049febec8fd16fb662d0d8c00f5ff7cec571b71585b18c30e0c6d2df93b4fe", {"tracer": "callTracer", "timeout": "60s"})
twice, get different trace result for the transaction0x44de5f0ce469c09e4003f974e4ae119aea69ac461fdb0974fe410a1657284ce5
First time tx trace result:
result: {
calls: [{...}],
from: "0x00000000c0293c8ca34dac9bcc0f953532d34e4d",
gas: "0xa7ac",
gasUsed: "0x6876",
input: "0xca722cdc5ae6e1d89dcdb255d8851f3b47f374103d5022146b4e29a3bf4aea91993ae06fdd3d5766c2b7db16c171487fdb4800eaabf851f35488b76b33e53faa21b36588",
output: "0x",
time: "86.428742ms",
to: "0xd1ceeeeee83f8bcf3bedad437202b6154e9f5405",
type: "CALL",
value: "0x0"
}
}
Second time tx trace result:
{
result: {
error: "execution reverted",
from: "0x00000000c0293c8ca34dac9bcc0f953532d34e4d",
gas: "0xa7ac",
gasUsed: "0xa8f",
input: "0xca722cdc5ae6e1d89dcdb255d8851f3b47f374103d5022146b4e29a3bf4aea91993ae06fdd3d5766c2b7db16c171487fdb4800eaabf851f35488b76b33e53faa21b36588",
time: "15.241119ms",
to: "0xd1ceeeeee83f8bcf3bedad437202b6154e9f5405",
type: "CALL",
value: "0x0"
}
}
- Why get "execution reverted" error for the successful transaction
0x44de5f0ce469c09e4003f974e4ae119aea69ac461fdb0974fe410a1657284ce5
at the secondtraceBlockByHash
call
max-mapper