Skip to content

Polygon-mainnet: debug_traceBlockByHash Returns wrong data for some newly created block and may or may not get fixed after a while. #763

@edwinchen12

Description

@edwinchen12

Our support team has aggregated some common issues and their solutions from past which are faced while running or interacting with a bor client. In order to prevent redundant efforts, we would encourage you to have a look at the FAQ's section of our documentation mentioning the same, before filing an issue here. In case of additional support, you can also join our discord server

System information

Bor client version: [e.g. v0.2.16]
I am not entirely sure the Bor client version, we use QuickNode and Achemy as our node provider and it depends on which client version they are running.

Heimdall client version: [e.g. v0.2.10]

OS & Version: Linux

Environment: Polygon Mainnet

Type of node: Archive

Additional Information:

Overview of the problem

Please describe the issue you experiencing.

debug_traceBlockByHash can return wrong data when compare against polygon block explorer. Example for blockHash=0x1a050fb2bac702638c53ee9f49aaf448d4ceb3c4bd4df13e478b777a23792325

Block Explorer: https://polygonscan.com/block/0x1a050fb2bac702638c53ee9f49aaf448d4ceb3c4bd4df13e478b777a23792325

The gas and gasUsed field can be wrong for multiple traces in the block, one of the example https://polygonscan.com/tx/0x4092ef3d113e813755031d87017676a42609f6f9821ef4272f48a1a4f6467e9c

  1. QuickNode initially returns wrong data and the data gets corrected after a few minutes.
  2. Achemy data stays wrong for an extensive period of time.

This issue started happening on 02/26/2023 and is currently actively happening on 03/02/2023 started around 15:30pm PST and paused around 16:15pm PST

Reproduction Steps

Please mention the steps required to reproduce this issue.
This problem is dynamic and a bit difficult to reproduce, you can query an achemy cluster and it should return the wrong data right now.

  1. query curl -s https://achemy_end_point -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "id": 1, "method": "debug_traceBlockByHash", "params": ["0x1a050fb2bac702638c53ee9f49aaf448d4ceb3c4bd4df13e478b777a23792325", {"tracer": "callTracer"}]}' | jq

Logs / Traces / Output / Error Messages

Please post any logs/traces/output/error messages (as text and not screenshots) which you believe may have caused the issue. If the log is longer than a few dozen lines, please include the URL to the gist of the log instead of posting it in the issue.

Additional Information

In order to debug the issue faster, we would stongly encourage if you can provide some of the details mentioned below (whichever seems relevant to your issue)

Wrong trace data being returned:
WrongData.csv

Correct trace data being returned after a while;
CorrectData.csv

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions