erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Tracing discrepancy between Bor and Erigon

Open a26nine opened this issue 2 years ago • 13 comments

Erigon version: v0.0.6 https://github.com/maticnetwork/erigon/releases/tag/v0.0.6

Commit hash: d9c5a01

Chain/Network: Polygon/Matic

When tracing on Polygon, the result is different between Bor and Erigon. While Bor has an output field for all the calls, Erigon does not.

This is the case with all the traces — CREATE/CREATE2/CALL/DELETECALL.

image image image

Example

{
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByNumber",
  "params": [
    "0x27224F8",
    {
      "tracer": "callTracer",
      "timeout": "120s"
      
    }
  ],
  "id": 1
}

Is this expected? Can this behavior be changed to make the outputs of both clients similar?

a26nine avatar Apr 03 '23 05:04 a26nine

Looking into this

0xKrishna avatar Apr 05 '23 04:04 0xKrishna

I checked on this and found that the response struct on erigon and bor (which is based on geth) is different, Hence bor is giving some extra fields in the response. Can you compare the same for erigon (for ethereum) and geth node ? I geth has also changed the values, Taking upstream changes in bor will fix the issue.

0xKrishna avatar Apr 11 '23 07:04 0xKrishna

Well, I couldn't find that difference between Geth and Erigon (for Ethereum).

Snap-20230412-055133@2x Snap-20230412-055250@2x

Here are the full traces:

a26nine avatar Apr 12 '23 05:04 a26nine

Thanks So the output field is present in erigon as well in case of ethereum, Only in case of polygon you are not getting that output field ?

0xKrishna avatar Apr 12 '23 06:04 0xKrishna

In case of Polygon-Erigon, yes, the output field is not present.

a26nine avatar Apr 12 '23 06:04 a26nine

Thanks @a26nine for the confirmation. I will check if I can find the issue and will also share this with the community to seek help on this.

0xKrishna avatar Apr 12 '23 09:04 0xKrishna

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar May 23 '23 02:05 github-actions[bot]

(keep this open)

a26nine avatar May 23 '23 04:05 a26nine

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar Jul 03 '23 02:07 github-actions[bot]

(keep this open)

a26nine avatar Jul 03 '23 10:07 a26nine

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar Aug 28 '23 02:08 github-actions[bot]

keeping this open

qk-santi avatar Aug 28 '23 11:08 qk-santi

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar Oct 14 '23 02:10 github-actions[bot]

yperbasis changed Importance from Imp2 to Imp3

VBulikov avatar Sep 19 '25 13:09 VBulikov

https://erigon.tech/an-update-on-our-support-for-polygon/

yperbasis avatar Oct 14 '25 13:10 yperbasis