Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug_traceBlockByNumber gives panic occured: runtime error on specific txhash #1992

Closed
jwelch-qn opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working linear Created by Linear-GitHub Sync

Comments

@jwelch-qn
Copy link

Seid version
v6.0.1-hotfix-rpc-3

Chain ID
Sei Pacific - 1329

Describe the bug

--data '{"method":"debug_traceBlockByNumber","params":["0x72d7905", {"tracer":"callTracer","timeout":"300s"}], "id":1,"jsonrpc":"2.0"}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "txHash": "0x57c4f07742c60ca73e2a86f3e6ff13fd5a4ff531b4ab232271d1ccfbc644ae37",
      "error": "panic occured: runtime error: invalid memory address or nil pointer dereference, could not trace tx: 0x57c4f07742c60ca73e2a86f3e6ff13fd5a4ff531b4ab232271d1ccfbc644ae37"
    },

Block Explorer for block: https://www.seiscan.app/pacific-1/blocks/120420613

I can retrieve this txhash with eth_getTransactionByHash:

curl https://docs-demo.sei-pacific.quiknode.pro/ \                                                                                                                   
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionByHash","params":["0x57c4f07742c60ca73e2a86f3e6ff13fd5a4ff531b4ab232271d1ccfbc644ae37"],"id":1,"jsonrpc":"2.0"}'

And I see it is also included in the block with eth_getBlockByHash:

curl https://docs-demo.sei-pacific.quiknode.pro/ \                                                                                                                   
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getBlockByHash","params":["0x439013564253856250320ec3ba4fd0e27fe44bbb191d8ce553a77801b5ad4786",false],"id":1,"jsonrpc":"2.0"}'
@jwelch-qn jwelch-qn added bug Something isn't working linear Created by Linear-GitHub Sync labels Dec 17, 2024
@philipsu522
Copy link
Contributor

You can use a new endpoint that sei_traceBlockByNumberExcludeTraceFail see #1995
This has been tested & verified by some teams, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

3 participants
@philipsu522 @jwelch-qn and others