Skip to content

p2p/forkid: remove polygon specific forks from Gatherforks#160

Merged
manav2401 merged 1 commit into
release/3.2-developfrom
manav/fix-forkid-calculation
Jun 5, 2026
Merged

p2p/forkid: remove polygon specific forks from Gatherforks#160
manav2401 merged 1 commit into
release/3.2-developfrom
manav/fix-forkid-calculation

Conversation

@manav2401

Copy link
Copy Markdown
Member

Summary

This PR fixes the forkid resolution for Polygon Mainnet and Amoy chains. Makes it equivalent to bor to avoid p2p handshake failures.

In one of the earlier PRs, bor specific hard forks were added in GatherForks. While some polygon related forks were already added, it sounded like a natural addition but it can cause issues in p2p handshake with other bor nodes.

Bor as of now doesn't include any bor specific forks. Hence, we remove all polygon specific forks except few selected ones. In erigon, we have to set a polygon specific hard fork for any ethereum equivalent hard fork we activate.

  • Agra fork is the Shanghai Equivalent fork
  • Napoli fork is the Cancun Equivalent fork
  • Bhilai fork is the Prague Equivalent fork
    In bor, we directly activate the ethereum forks (as we can exclude EIPs safely) but that was not the case with erigon (due to it being maintained in original erigon repo). Hence, we need to include these forks to match with bor's response of GatherForks.

This might also fix some issues operators are seeing after v3.6.0 which changed these forks.

@manav2401 manav2401 merged commit c3d56da into release/3.2-develop Jun 5, 2026
12 of 15 checks passed
@manav2401 manav2401 deleted the manav/fix-forkid-calculation branch June 5, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants