Skip to content

feat(params,genesis): schedule devnet gas2500x fork - #2549

Open
gzliudan wants to merge 1 commit into
XinFinOrg:dev-upgradefrom
gzliudan:enable-devnet-gas2000x
Open

feat(params,genesis): schedule devnet gas2500x fork#2549
gzliudan wants to merge 1 commit into
XinFinOrg:dev-upgradefrom
gzliudan:enable-devnet-gas2000x

Conversation

@gzliudan

@gzliudan gzliudan commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Schedule the devnet gas2500x hard fork at block 1,385,000, estimated to activate on 2026-09-08 10:02 CST (02:02 UTC) The 2500x fork is enabled only on devnet; testnet and mainnet keep Gas2500xBlock nil.

Motivation & Context

The devnet needs a coordinated gas2500x activation so all validators switch to the new gas-tier rules at the same block. The activation block is derived from the live devnet stats snapshot: head 1,185,928 observed at 2026-09-03 19:26:54 CST with a measured 2.0s block time, targeting 2026-09-08 10:00 CST.

Changes

  • params/config_networks.go: add Gas2500xBlock: 1385000 to DevnetChainConfig, placed after Gas50xBlock(0) and before EIP1559Block(25000) so it satisfies CheckConfigForkOrder's BASEFEE window rule.
  • genesis/devnet.json: add "gas2500xBlock": 1385000 so XDC init --devnet and XDC --devnet schedule the identical fork (covered by TestEmbeddedGenesisConfigMatchesParams).
  • params/config_networks_test.go: remove devnet from TestDefaultXDCNetworksDoNotEnableGas2500xFork; testnet/mainnet remain asserted to nil.

Target 2026-09-08 10:00 CST (02:00 UTC), derived from the devnet stats
snapshot: head 1185928 seen at 2026-09-03 19:26:54 CST with a measured
2.0s block time.

Keep genesis/devnet.json in sync with DevnetChainConfig so `XDC init
--devnet` and `XDC --devnet` schedule the same fork, and drop devnet from
the assertion that default XDC networks leave gas2500x unscheduled.
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: bfe57410-80f7-4934-81aa-0c4ca964280a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gzliudan gzliudan changed the title feat(params,genesis): schedule devnet gas2500x fork at block 1385000 feat(params,genesis): schedule devnet gas2500x fork Sep 3, 2026
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.

1 participant