Skip to content

Conversation

@pratikspatil024
Copy link
Member

Description

Please provide a detailed description of what was done in this PR

Changes

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Changes only for a subset of nodes

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Nodes audience

In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply
  • Created a task in Jira and informed the team for implementation in Erigon client (if applicable)
  • Includes RPC methods changes, and the Notion documentation has been updated

Cross repository changes

  • This PR requires changes to heimdall
    • In case link the PR here:
  • This PR requires changes to matic-cli
    • In case link the PR here:

Testing

  • I have added unit tests
  • I have added tests to CI
  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on amoy
  • I have created new e2e tests into express-cli

Manual tests

Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it

cffls and others added 5 commits January 13, 2026 12:58
* miner: add dynamic gas limit adjustment

This feature allows block producers to dynamically adjust block gas limits to help stabilize base fees within a target range. When base fee rises above the target, gas limit increases to add supply. When base fee falls below the target, gas limit decreases to reduce supply.

New configuration parameters:

- enableDynamicGasLimit: Boolean flag to enable the feature (default: false). When disabled, the existing static gaslimit behavior is preserved.

- gasLimitMin: Minimum gas limit floor when dynamic adjustment is enabled (default: 50M). The gas limit will trend toward this value when base fee is below the target minus buffer.

- gasLimitMax: Maximum gas limit ceiling when dynamic adjustment is enabled (default: 60M). The gas limit will trend toward this value when base fee is above the target plus buffer.

- targetBaseFee: Target base fee in wei that the algorithm tries to maintain (default: 500 gwei). This is the equilibrium point for gas limit adjustments.

- baseFeeBuffer: Buffer zone around target base fee in wei (default: 100 gwei). When base fee is within [target-buffer, target+buffer], no adjustment occurs and gas limit follows the parent block's gas limit.

The algorithm respects the 1/1024 consensus rule for per-block gas limit
changes, ensuring gradual adjustments rather than sudden jumps.

* Bump up version
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
37.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@pratikspatil024 pratikspatil024 merged commit c26d843 into master Jan 13, 2026
6 of 10 checks passed
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.

5 participants