-
Notifications
You must be signed in to change notification settings - Fork 809
Description
Hello,
One of our customers is trying to perform the following query:
curl -s -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByHash","params":["0xaf4beb8295889cbbe4760f4114730e46126e6b719f370e8387723c770eca0c85", {"tracer": "prestateTracer", "tracerConfig": {"onlyTopCall":false,"diffMode":true}}],"id":1,"jsonrpc":"2.0"}' localhost:9650/ext/bc/C/rpc
And the response is:
{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"method handler crashed"}}
We have tried tracing the the next block hash in history:
- ran
getBlockByHash
on0xaf4beb8295889cbbe4760f4114730e46126e6b719f370e8387723c770eca0c85
and got0x877114
as block number in hex for the current block, so we are taking0x877115
as the following block - ran
eth_getBlockByNumber
on0x877115
and got the following block hash0xecbb1db71a133c2959ff56018fc611b0ffa3daa71ebf0e89c98172652a35d117
- running
debug_traceBlockByHash
on the above extracted hash renders the expected result
Conclusion: It seems like some blocks are having problems when being traced by hash - the above is just one of the examples, another block number with the same behaviour would be 8876292.
Avalanchego version:
avalanche/1.10.13 [database=v1.4.5, rpcchainvm=29, commit=2d8222da82114088a2a99d8d69f40846f1ea6208, go=1.20.10]
We've also tried updating to v1.10.14
but we faced the same behaviour.
Could anyone be able to shed some light on the above issues, whenever you get the time, please?
Thanks a lot!
P.S: This is a similar issue we've opened in the past, attaching it for traceability: #1689, which opened ava-labs/coreth#282 and was ultimately fixed.