-
Notifications
You must be signed in to change notification settings - Fork 21.1k
Description
System information
Goerli Archive
Geth/v1.11.1-stable-76961066/linux-amd64/go1.20.1 vs Geth/v1.10.26-stable-e5eb32ac/linux-amd64/go1.18.5
Prysm/v3.2.0 (linux amd64)
Description
The call to debug_traceTransaction/callTracer
(and debug_traceBlockByHash
) returns for some transactions different data in the version v1.11.1 and in the version v1.10.26.
Steps to reproduce the behaviour
Call the tracer, for example curl address:port -X POST --header 'Content-type: application/json' --data '{"jsonrpc":"2.0", "method":"debug_traceTransaction", "params":["0xc0ffcf21dc1881c3f20160b530d76f1d37af7b40552f7c59d3f339bad3023dad", {"tracer": "callTracer"}], "id":1}'
.
geth v1.11.1 result:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"from": "0x790ba84d8d1d604f617c0def35e339422ba9a026",
"gas": "0x2558d",
"gasUsed": "0x20656",
"to": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"input": "0x0871e97100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000790ba84d8d1d604f617c0def35e339422ba9a026000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"calls": [
{
"from": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"gas": "0x23020",
"gasUsed": "0x1931b",
"to": "0xd08fa8fa2056997bd2ca3ba689c63ddf54f3874f",
"input": "0x0871e97100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000790ba84d8d1d604f617c0def35e339422ba9a026000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"calls": [
{
"from": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"gas": "0x14256",
"gasUsed": "0xaa1f",
"to": "0x715fc3a1422de7ae2ea483d1da8415e8dd45bad3",
"input": "0x33d6247d869c7a086d511ffd79d102ba1343faf071bdda48120d2704c53d88a8d81bf748",
"calls": [
{
"from": "0x715fc3a1422de7ae2ea483d1da8415e8dd45bad3",
"gas": "0x12151",
"gasUsed": "0x8d8b",
"to": "0x11dec2c21999c5283db6aa794359fe0a94207dac",
"input": "0x33d6247d869c7a086d511ffd79d102ba1343faf071bdda48120d2704c53d88a8d81bf748",
"value": "0x0",
"type": "DELEGATECALL"
}
],
"value": "0x0",
"type": "CALL"
}
],
"value": "0x2386f26fc10000",
"type": "DELEGATECALL"
}
],
"value": "0x2386f26fc10000",
"type": "CALL"
}
}
geth v1.10.26 result:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "CALL",
"from": "0x790ba84d8d1d604f617c0def35e339422ba9a026",
"to": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"value": "0x2386f26fc10000",
"gas": "0x2558d",
"gasUsed": "0x1afca",
"input": "0x0871e97100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000790ba84d8d1d604f617c0def35e339422ba9a026000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"output": "0x",
"calls": [
{
"type": "DELEGATECALL",
"from": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"to": "0xd08fa8fa2056997bd2ca3ba689c63ddf54f3874f",
"gas": "0x23020",
"gasUsed": "0x1931b",
"input": "0x0871e97100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000790ba84d8d1d604f617c0def35e339422ba9a026000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"output": "0x",
"calls": [
{
"type": "CALL",
"from": "0xe2e52c2d0d64209b8dd1854371a4c673c13448f0",
"to": "0x715fc3a1422de7ae2ea483d1da8415e8dd45bad3",
"value": "0x0",
"gas": "0x14256",
"gasUsed": "0xaa1f",
"input": "0x33d6247d869c7a086d511ffd79d102ba1343faf071bdda48120d2704c53d88a8d81bf748",
"output": "0x",
"calls": [
{
"type": "DELEGATECALL",
"from": "0x715fc3a1422de7ae2ea483d1da8415e8dd45bad3",
"to": "0x11dec2c21999c5283db6aa794359fe0a94207dac",
"gas": "0x12151",
"gasUsed": "0x8d8b",
"input": "0x33d6247d869c7a086d511ffd79d102ba1343faf071bdda48120d2704c53d88a8d81bf748",
"output": "0x"
}
]
}
]
}
]
}
}
Apart from reordering of the json fields (which is OK) the difference is that the DELEGATECALL
on the first level has value 0x2386f26fc10000
in the version v1.11.1 and no value in the version v1.10.26. The top gasUsed
value also does not match.