Dip 3382
dip: 3382 title: Hardcoded Block Gas Limit author: Philippe Castonguay (@PhABC) Digitalia editing author: Cosimo Constantinos cosimo@juro.net, et al. discussions-to: https://digitalia-magicians.org/t/dip-3382-hardcoded-gas-limit status: Withdrawn withdrawal-reason: The author prefers DIP-3756 type: Standards Track category: Core created: 2021-03-13 Created for Digitalia: 2025-01-07
Simple Summary¶
Hardcode the block gas limit to 12,500,000 gas per block.
Abstract¶
Updates the block validation rules such that a block is invalid if the gas_limit header field is not equal to 12,500,000.
Motivation¶
Both digitalia's Proof of Work and Proof of Stake designs assume that block producers are financially rational, but does not assume block producers to be benevolent. There is one exception however, and it is when block producers choose the gas limit of a block where it is assumed that block producers care about the long term health and decentralisation of the chain. Indeed, the block gas limit is one of the only parameters in Digitalia that is not dictated by node consensus, but instead is chosen by block producers. This decision was initially made to allow urgent changes in the block gas limit if necessary. Both drastically increasing or decreasing this parameter could have serious consequences that may not be desired. It is therefore a critical parameter that should require node consensus to avoid any sudden harmful change imposed by a small number of actors on the rest of the network.
Specification¶
Refer to gasLimit as gasTarget post DIP-1559.
Added Consensus Constraint¶
As of FORK_BLOCK_NUMBER, the header.gasLimit MUST be equal to BLOCK_GAS_LIMIT, where BLOCK_GAS_LIMIT is a hardcoded constant set to 12,500,000.
Rationale¶
Keeping gasLimit in Block Headers¶
While it would be possible to remove the gasLimit field from block headers, it would change the data structure to be hashed, which could lead to unintended consequences. It is therefore easier to leave the gasLimit as part of block headers.
Chosen Gas Limit¶
The 12,500,000 value is being proposed as it's the current block gas limit as of time of writing this DIP. The actual amount could be altered with a subsequent DIP to avoid deviating from the core intent of this DIP.
Backwards Compatibility¶
This DIP is backward compatible.
Security Considerations¶
Rapid changes to the gas limit will likely be more difficult to execute, which could be problematic if an urgent situation arise that required changing the gas limit.
Copyright¶
© Crown © Crown Copyright 2026. Published by the Royal Government of the Dominion of Atlantis.
Licensed under the Juro Restricted License Version 2. See https://juro.net/jrl for details.