Developers Forum for XinFin XDC Network

Anil Gautam Saravade
Anil Gautam Saravade

Posted on

[2.6.4-beta] debug_traceBlockByNumber showing execution reverted

Hi, I am running XDC testnet nodes with 2.6.4-beta version. When I execute debug_traceBlockByNumber method I get execution reverted for 2 out of 3, but all 3 show success on the explorer.

Any suggestions how to fix this issue?

curl -s --location 'http://127.0.0.1:8545' \
--header 'Content-Type: application/json' \
--data '{
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x454B33D",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}' | jq
Enter fullscreen mode Exit fullscreen mode
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296a8",
        "gasUsed": "0xc62b",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001762ad5cff508fcbdb84986bdb82966194d2db22f922369986490087a18bbc3dd000000000000000000000000000000000000000000000000000000000000000142a7f1c2030343f2d0c6c9e59e896ecbc391ce5730d3dedfbc8860d37630d09e",
        "output": "0x",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x26fe8",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001c762ad5cff508fcbdb84986bdb82966194d2db22f922369986490087a18bbc3dd42a7f1c2030343f2d0c6c9e59e896ecbc391ce5730d3dedfbc8860d37630d09e",
            "output": "0x000000000000000000000000e64f4d6b1283363975374351057a244bf0cc08ea"
          },
          {
            "type": "CALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0xf12c10df5c61592dc0f0c65b283552b45d1d9a9e",
            "value": "0x38d7ea4c68000",
            "gas": "0x571c",
            "gasUsed": "0x0",
            "input": "0x",
            "output": "0x"
          }
        ]
      }
    },
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296a8",
        "gasUsed": "0x341c",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000130e2819e6ec6b41b31967b4c8853d37cd2841e64293da01046b679e9175842d500000000000000000000000000000000000000000000000000000000000000014f1dc491648cb2a819363251dfa702c3041934fdb04d03fc52b059b1f5e57780",
        "output": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000195369676e6572206d75737420626520746865206f776e65722e00000000000000",
        "error": "execution reverted",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x26fe8",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001c30e2819e6ec6b41b31967b4c8853d37cd2841e64293da01046b679e9175842d54f1dc491648cb2a819363251dfa702c3041934fdb04d03fc52b059b1f5e57780",
            "output": "0x000000000000000000000000f7b482cf6b370a803173ae4560f73c972c4fb26c"
          }
        ]
      }
    },
    {
      "result": {
        "type": "CALL",
        "from": "0x3c54b39dbe87be2937dd7746263c68791c3a240a",
        "to": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
        "value": "0x0",
        "gas": "0x296e8",
        "gasUsed": "0x341c",
        "input": "0x0adcf464000000000000000000000000f12c10df5c61592dc0f0c65b283552b45d1d9a9e00000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001b00000000000000000000000000000000000000000000000000000000000000016e07c32deaef1abe8ff401aa867859d2fe664e85ec2fc652e300b7e2f4b63bb100000000000000000000000000000000000000000000000000000000000000016804aa44b3cee226f82d682dc4af71531e0d8f30e001dab8521268a945b38581",
        "output": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000195369676e6572206d75737420626520746865206f776e65722e00000000000000",
        "error": "execution reverted",
        "calls": [
          {
            "type": "STATICCALL",
            "from": "0xdaee6b91a1dcabb5aabcf968f117c7553c2e3abb",
            "to": "0x0000000000000000000000000000000000000001",
            "gas": "0x27027",
            "gasUsed": "0xbb8",
            "input": "0xf45bdb1560f9bee2a03c35e6c1dd530eb5d7df6e3c4add38314f206c56c92f60000000000000000000000000000000000000000000000000000000000000001b6e07c32deaef1abe8ff401aa867859d2fe664e85ec2fc652e300b7e2f4b63bb16804aa44b3cee226f82d682dc4af71531e0d8f30e001dab8521268a945b38581",
            "output": "0x00000000000000000000000043e89382d30159b38721a24401f9a4fe66d13397"
          }
        ]
      }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Discussion (1)

Collapse
oldgmail profile image
zarif hasan